Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions ome_zarr/classes/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,9 @@ def from_ome_zarr(
if "image-label" in group.attrs:
is_label = True

elif version == "0.4":
# allow compatibility with 0.4.dev-spatialdata store
# not intended for other/future versions beyond 0.5
elif version.startswith("0.4"):
from ome_zarr_models.v04.multiscales import Multiscale as Multiscalev04

metadata_json = cast(dict, group.attrs.get("multiscales", [None])[0])
Expand All @@ -513,7 +515,9 @@ def from_ome_zarr(
if "image-label" in group.attrs:
is_label = True

elif version == "0.5":
# allow compatibility with 0.5.dev-spatialdata store
# not intended for other/future versions beyond 0.5
elif version.startswith("0.5"):
from ome_zarr_models.v05.multiscales import Multiscale as Multiscalev05

ome_attrs = cast(dict[str, Any], group.attrs.get("ome", {}))
Expand Down
Loading