We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30e59e3 commit b2b9351Copy full SHA for b2b9351
py/ngff_zarr/to_ngff_zarr.py
@@ -552,10 +552,11 @@ def _handle_large_array_writing(
552
codecs_kwargs = {}
553
554
if sharding_kwargs:
555
- if "_shard_shape" in sharding_kwargs:
+ sharding_kwargs_copy = sharding_kwargs.copy()
556
+ if "_shard_shape" in sharding_kwargs_copy:
557
# For Zarr v3, configure sharding as a codec only
- shard_shape = sharding_kwargs.pop("_shard_shape")
558
- internal_chunk_shape = sharding_kwargs.get(
+ shard_shape = sharding_kwargs_copy.pop("_shard_shape")
559
+ internal_chunk_shape = sharding_kwargs_copy.get(
560
"chunk_shape"
561
) # This is the inner chunk shape
562
0 commit comments