Skip to content

Commit 0d89912

Browse files
committed
make chunks a tuple
1 parent 9a1580b commit 0d89912

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
@@ -120,7 +120,7 @@ def normalize_chunks(chunks: Any, shape: tuple[int, ...], typesize: int) -> tupl
120120
# handle dask-style chunks (iterable of iterables)
121121
if all(isinstance(c, (tuple | list)) for c in chunks):
122122
# take first chunk size for each dimension
123-
chunks = (
123+
chunks = tuple(
124124
c[0] for c in chunks
125125
) # TODO: check/error/warn for irregular chunks (e.g. if c[0] != c[1:-1])
126126

0 commit comments

Comments
 (0)