Skip to content

Commit c693fb4

Browse files
committed
use sane shard shape when there are too few chunks
1 parent 43877c0 commit c693fb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zarr/core/chunk_grids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def _auto_partition(
234234
if a_shape // c_shape > 16:
235235
_shards_out += (c_shape * 2,)
236236
else:
237-
_shards_out += (1,)
237+
_shards_out += (c_shape,)
238238
else:
239239
_shards_out = shard_shape
240240

0 commit comments

Comments
 (0)