Skip to content

Commit 37e3489

Browse files
committed
* specifiy driver key depending on python version
1 parent 0e7749e commit 37e3489

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ngff_zarr/to_ngff_zarr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _write_with_tensorstore(
135135
},
136136
}
137137
if zarr_format == 2:
138-
spec["driver"] = "zarr2"
138+
spec["driver"] = "zarr2" if sys.version_info >= (3, 10) else "zarr"
139139
spec["metadata"]["chunks"] = chunks
140140
spec["metadata"]["dimension_separator"] = "/"
141141
spec["metadata"]["dtype"] = array.dtype.str

0 commit comments

Comments
 (0)