Skip to content

Commit 8e9a3e3

Browse files
committed
Set correct chunk shape when using shards
1 parent 2420f9e commit 8e9a3e3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/zarr/core/array.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4321,9 +4321,7 @@ async def init_array(
43214321
chunk_grid=RegularChunkGrid(chunk_shape=shard_shape_parsed),
43224322
)
43234323
codecs_out = (sharding_codec,)
4324-
chunks_out = shard_shape_parsed
43254324
else:
4326-
chunks_out = chunk_shape_parsed
43274325
codecs_out = sub_codecs
43284326

43294327
if config is None:
@@ -4335,7 +4333,7 @@ async def init_array(
43354333
shape=shape_parsed,
43364334
dtype=zdtype,
43374335
fill_value=fill_value,
4338-
chunk_shape=chunks_out,
4336+
chunk_shape=chunk_shape_parsed,
43394337
chunk_key_encoding=chunk_key_encoding_parsed,
43404338
codecs=codecs_out,
43414339
dimension_names=dimension_names,

0 commit comments

Comments
 (0)