Skip to content

Commit ae76bb3

Browse files
committed
Merge branch 'feat/read-funcs' of github.com:d-v-b/zarr-python into feat/read-funcs
2 parents 665037e + 91a7916 commit ae76bb3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/zarr/core/array.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3784,8 +3784,9 @@ def _parse_chunk_encoding_v2(
37843784
if compressor == "auto":
37853785
_compressor = default_compressor
37863786
else:
3787-
if isinstance(compressor, Iterable):
3788-
raise TypeError("For Zarr v2 arrays, the `compressor` must be a single codec.")
3787+
if isinstance(compressor, Iterable) and not isinstance(compressor, dict):
3788+
msg = f"For Zarr v2 arrays, the `compressor` must be a single codec. Got an iterable with type {type(compressor)} instead."
3789+
raise TypeError(msg)
37893790
_compressor = parse_compressor(compressor)
37903791
if filters == "auto":
37913792
_filters = default_filters

0 commit comments

Comments
 (0)