Skip to content

Commit 7c1e34c

Browse files
committed
Parse chunk shape
1 parent ec79b87 commit 7c1e34c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/zarr/core/array.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,11 @@ async def create(
461461
raise ValueError("Only one of chunk_shape or chunks can be provided.")
462462

463463
if chunks:
464+
chunks = parse_shapelike(chunks)
464465
_chunks = normalize_chunks(chunks, shape, dtype_parsed.itemsize)
465466
else:
467+
if chunk_shape:
468+
chunk_shape = parse_shapelike(chunk_shape)
466469
_chunks = normalize_chunks(chunk_shape, shape, dtype_parsed.itemsize)
467470

468471
result: AsyncArray[ArrayV3Metadata] | AsyncArray[ArrayV2Metadata]

0 commit comments

Comments
 (0)