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.
1 parent 77f40a5 commit 95348d6Copy full SHA for 95348d6
src/zarr/core/array.py
@@ -3780,8 +3780,9 @@ def _parse_chunk_encoding_v2(
3780
if compressor == "auto":
3781
_compressor = default_compressor
3782
else:
3783
- if isinstance(compressor, Iterable):
3784
- 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."
3785
+ raise TypeError(msg)
3786
_compressor = parse_compressor(compressor)
3787
if filters == "auto":
3788
_filters = default_filters
0 commit comments