Skip to content

Commit da7cd4e

Browse files
committed
* try driver type
1 parent c0b95b0 commit da7cd4e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ngff_zarr/to_ngff_zarr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ def _write_with_tensorstore(
134134
"shape": dataset_shape,
135135
},
136136
}
137-
if zarr_format == 2:
138-
spec["driver"] = "zarr"
137+
if zarr_format == 2 and zarr_version_major < 3:
138+
spec["driver"] = "zarr" if zarr_version_major < 3 else "zarr2"
139139
spec["metadata"]["chunks"] = chunks
140140
spec["metadata"]["dimension_separator"] = "/"
141141
spec["metadata"]["dtype"] = array.dtype.str

test/test_to_ngff_zarr_tensorstore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def test_tensorstore_already_exists_failure():
138138
store=zarr_path,
139139
multiscales=multiscales,
140140
use_tensorstore=True, # Enable TensorStore
141-
version='0.5'
141+
# version="0.5",
142142
)
143143
end_time_write = time.time()
144144
logger.info(

0 commit comments

Comments
 (0)