File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 33import pytest
44from anndata import AnnData
55from anndata .tests .helpers import assert_equal
6- from spatialdata import SpatialData
7- from spatialdata ._core .query .relational_query import _get_unique_label_values_as_index
6+ from spatialdata import SpatialData , get_element_instances
87from spatialdata .datasets import blobs
98from spatialdata .models import TableModel
109from spatialdata .testing import assert_spatial_data_objects_are_identical
1817def blobs_annotating_element (name : BlobsTypes ) -> SpatialData :
1918 sdata = blobs (length = 50 )
2019 if name == "blobs_labels" :
21- instance_id = _get_unique_label_values_as_index (sdata [name ]).tolist ()
20+ instance_id = get_element_instances (sdata [name ]).tolist ()
2221 else :
2322 instance_id = sdata [name ].index .tolist ()
2423 n = len (instance_id )
You can’t perform that action at this time.
0 commit comments