Skip to content

refactor: drop pl.measure_obs in favor of spatialdata get_centroids#744

Draft
timtreis wants to merge 1 commit into
mainfrom
drop-measure-obs-get-centroids
Draft

refactor: drop pl.measure_obs in favor of spatialdata get_centroids#744
timtreis wants to merge 1 commit into
mainfrom
drop-measure-obs-get-centroids

Conversation

@timtreis

Copy link
Copy Markdown
Member

Removes pl.measure_obs; superseded by SpatialData.get_centroids(..., persist_as="adata", return_area=True) from scverse/spatialdata#1150.

equivalent_diameter is no longer written (derive as 2*sqrt(area/pi)).

Blocked upstream / do not merge: temporarily pins spatialdata to the #1150 branch so CI tests the removal against the real API. Revert the pin to a released version constraint once #1150 ships.

spatialdata#1150 upstreams per-cell centroid/area persistence as
SpatialData.get_centroids(..., persist_as="adata", return_area=True),
making the prototype pl.measure_obs redundant. Remove measure_obs and
its measure-specific helpers. The streaming label-centroid utilities
(_stream_label_centroid_stats / _pixel_to_coord) stay - render.py's
as_points path uses them. Delete the measure_obs tests.

equivalent_diameter is no longer written; derive as 2*sqrt(area/pi).

TEMPORARY: pin spatialdata to the get_centroids branch so CI tests the
removal against the real upstream API. Do not merge until #1150 is
released; revert the pin to a version constraint then.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant