Skip to content

Commit 1681738

Browse files
committed
* separate the compression/sharding test
1 parent 2ac65dc commit 1681738

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

test/test_to_ngff_zarr_v3_compression.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,21 @@ def test_zarr_v3_compression(input_images):
6868
dataset_name, baseline_name, multiscales, version=version
6969
)
7070

71-
# Test writing OME-Zarr 0.5 with compression and sharding
71+
72+
def test_zarr_v3_compression_with_sharding(input_images):
73+
"""Test Zarr v3 compression combined with sharding functionality"""
74+
dataset_name = "cthead1"
75+
image = input_images[dataset_name]
76+
baseline_name = "2_4/RFC3_GAUSSIAN.zarr"
77+
chunks = (64, 64)
78+
multiscales = to_multiscales(
79+
image, [2, 4], chunks=chunks, method=Methods.ITKWASM_GAUSSIAN
80+
)
81+
82+
compressors = zarr.codecs.BloscCodec(
83+
cname="zlib", clevel=5, shuffle=zarr.codecs.BloscShuffle.shuffle
84+
)
85+
7286
version = "0.5"
7387
chunks_per_shard = 2
7488

0 commit comments

Comments
 (0)