Skip to content

Commit 62d1859

Browse files
committed
ENH: zarr-python version checkout ofr OME-Zarr 0.5
1 parent a2665d9 commit 62d1859

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ngff_zarr/to_ngff_zarr.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ def to_ngff_zarr(
195195
**format_kwargs,
196196
)
197197
else:
198+
if zarr_version_major < 3:
199+
raise ValueError(
200+
"zarr-python version >= 3.0.0b2 required for OME-Zarr version >= 0.5"
201+
)
198202
# For version >= 0.5, open root with Zarr v3
199203
root = zarr.open_group(
200204
store,

0 commit comments

Comments
 (0)