Skip to content

feat(centroids): add return_area + SpatialData persist to get_centroids#1150

Open
timtreis wants to merge 9 commits into
mainfrom
feature/get-centroids-area-persist
Open

feat(centroids): add return_area + SpatialData persist to get_centroids#1150
timtreis wants to merge 9 commits into
mainfrom
feature/get-centroids-area-persist

[pre-commit.ci] auto fixes from pre-commit.com hooks

2091cbe
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jun 23, 2026 in 1s

92.50% (target 1.00%)

View this Pull Request on Codecov

92.50% (target 1.00%)

Details

Codecov Report

❌ Patch coverage is 93.38235% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.50%. Comparing base (78d0fe6) to head (2091cbe).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/spatialdata/_core/centroids.py 92.96% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1150      +/-   ##
==========================================
+ Coverage   92.43%   92.50%   +0.06%     
==========================================
  Files          51       51              
  Lines        7815     7912      +97     
==========================================
+ Hits         7224     7319      +95     
- Misses        591      593       +2     
Files with missing lines Coverage Δ
src/spatialdata/_core/operations/vectorize.py 91.87% <100.00%> (ø)
src/spatialdata/_core/spatialdata.py 93.88% <100.00%> (+0.01%) ⬆️
src/spatialdata/dataloader/datasets.py 90.56% <100.00%> (+0.04%) ⬆️
src/spatialdata/_core/centroids.py 94.61% <92.96%> (-5.39%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.