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 94d543c commit b9690e0Copy full SHA for b9690e0
src/zarr/core/chunk_grids.py
@@ -62,6 +62,8 @@ def _guess_chunks(
62
tuple[int, ...]
63
64
"""
65
+ if min_bytes >= max_bytes:
66
+ raise ValueError(f"Cannot have more min_bytes {min_bytes} than max_bytes {max_bytes}")
67
if isinstance(shape, int):
68
shape = (shape,)
69
@@ -264,7 +266,7 @@ def _auto_partition(
264
266
else:
265
267
if chunk_shape == "auto":
268
# aim for a 1MiB chunk
- _chunks_out = _guess_chunks(array_shape, item_size, max_bytes=1024)
269
+ _chunks_out = _guess_chunks(array_shape, item_size, max_bytes=1049000)
270
271
_chunks_out = chunk_shape
272
0 commit comments