Skip to content

Commit 96e4932

Browse files
Merge pull request #163 from melonora/refactor
change to get_element_instances
2 parents 62f591d + be552bb commit 96e4932

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/converters/test_legacy_anndata.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
import pytest
44
from anndata import AnnData
55
from 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
87
from spatialdata.datasets import blobs
98
from spatialdata.models import TableModel
109
from spatialdata.testing import assert_spatial_data_objects_are_identical
@@ -18,7 +17,7 @@
1817
def 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)

0 commit comments

Comments
 (0)