We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 665037e + 91a7916 commit ae76bb3Copy full SHA for ae76bb3
src/zarr/core/array.py
@@ -3784,8 +3784,9 @@ def _parse_chunk_encoding_v2(
3784
if compressor == "auto":
3785
_compressor = default_compressor
3786
else:
3787
- if isinstance(compressor, Iterable):
3788
- raise TypeError("For Zarr v2 arrays, the `compressor` must be a single codec.")
+ if isinstance(compressor, Iterable) and not isinstance(compressor, dict):
+ 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)
3790
_compressor = parse_compressor(compressor)
3791
if filters == "auto":
3792
_filters = default_filters
0 commit comments