Skip to content

Commit 4919dcf

Browse files
committed
address comments
Signed-off-by: YunLiu <[email protected]>
1 parent a35bda8 commit 4919dcf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_zarr_avg_merger.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@
2525
np.seterr(divide="ignore", invalid="ignore")
2626
zarr, has_zarr = optional_import("zarr")
2727
if has_zarr:
28-
if version_geq(get_package_version('zarr'), "3.0.0"):
28+
if version_geq(get_package_version("zarr"), "3.0.0"):
2929
directory_store = zarr.storage.LocalStore("test.zarr")
3030
else:
3131
directory_store = zarr.storage.DirectoryStore("test.zarr")
32+
else:
33+
directory_store = None
3234
numcodecs, has_numcodecs = optional_import("numcodecs")
3335

3436
TENSOR_4x4 = torch.randint(low=0, high=255, size=(2, 3, 4, 4), dtype=torch.float32)

0 commit comments

Comments
 (0)