Skip to content
Snippets Groups Projects
Commit bf843f72 authored by Siddhant Tibrewal's avatar Siddhant Tibrewal
Browse files

fixed chunk-shape calculation

parent 42fa6953
No related branches found
No related tags found
1 merge request!52Migrate to Zarr 3
......@@ -87,7 +87,7 @@ def add_variable(
_shard_shape = None
if chunk_shape is not None:
_chunk_shape = (np.min(chunk_shape, shape),)
_chunk_shape = tuple(min(chunk_shape, shape))
if chunks_per_shard is not None:
_shard_shape = tuple(i * chunks_per_shard for i in _chunk_shape)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment