Skip to content

Commit cb5237e

Browse files
committed
fix tests and pre-commit
1 parent 0246011 commit cb5237e

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

src/spatialdata_io/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
]
3838

3939
_readers_file_types = [
40-
"read_generic",
41-
"read_image",
42-
"read_geojson",
40+
"generic",
41+
"image",
42+
"geojson",
4343
]
4444

4545
_converters = [

src/spatialdata_io/converters/generic_to_zarr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def generic_to_zarr(
4848
4949
Notes
5050
-----
51-
This function reads data using the `read_generic` method from `spatialdata_io` and writes it to a zarr store
51+
This function reads data using the `generic()` method from `spatialdata_io` and writes it to a zarr store
5252
using the `SpatialData` class. It handles both existing and new zarr stores, ensuring that data is appropriately
5353
appended or initialized.
5454
"""

tests/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ def skip_if_below_python_version() -> pytest.mark.skipif:
2626
>>> def test_some_feature():
2727
>>> assert True
2828
"""
29-
MIN_VERSION = (3, 11)
29+
MIN_VERSION = (3, 12)
3030
reason = f"Test requires Python {'.'.join(map(str, MIN_VERSION))} or higher"
3131
return pytest.mark.skipif(sys.version_info < MIN_VERSION, reason=reason)

tests/converters/test_legacy_anndata.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
from spatialdata.testing import assert_spatial_data_objects_are_identical
1010
from spatialdata.transformations import get_transformation, set_transformation
1111

12-
from spatialdata_io.experimental import from_legacy_anndata, to_legacy_anndata
12+
from spatialdata_io.converters.legacy_anndata import (
13+
from_legacy_anndata,
14+
to_legacy_anndata,
15+
)
1316

1417
BlobsTypes = Literal["blobs_labels", "blobs_circles", "blobs_polygons", "blobs_multipolygons"]
1518

0 commit comments

Comments
 (0)