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 7eb6988 commit c7393a4Copy full SHA for c7393a4
src/zarr/core/array.py
@@ -3875,9 +3875,9 @@ async def from_array(
3875
if order is None:
3876
order = data.order
3877
if chunk_key_encoding is None and zarr_format == data.metadata.zarr_format:
3878
- if zarr_format == 2:
+ if isinstance(data.metadata, ArrayV2Metadata):
3879
chunk_key_encoding = {"name": "v2", "separator": data.metadata.dimension_separator}
3880
- else:
+ elif isinstance(data.metadata, ArrayV3Metadata):
3881
chunk_key_encoding = data.metadata.chunk_key_encoding
3882
if dimension_names is None and data.metadata.zarr_format == 3:
3883
dimension_names = data.metadata.dimension_names
0 commit comments