Skip to content

Commit 93ed8d6

Browse files
committed
fix test_creation_from_other_zarr_format
1 parent 353a477 commit 93ed8d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/zarr/core/array.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3850,14 +3850,14 @@ async def from_array(
38503850
filters = data.filters
38513851
if compressors is None:
38523852
compressors = data.compressors
3853-
if serializer == "auto":
3854-
serializer = cast(SerializerLike, data.serializer)
38553853
if fill_value is None:
38563854
fill_value = data.fill_value
38573855
if order is None:
38583856
order = data.order
38593857
if zarr_format is None:
38603858
zarr_format = data.metadata.zarr_format
3859+
if zarr_format == 3 and serializer == "auto":
3860+
serializer = cast(SerializerLike, data.serializer)
38613861
if chunk_key_encoding is None and zarr_format == data.metadata.zarr_format:
38623862
if data.metadata.zarr_format == 2:
38633863
chunk_key_encoding = {"name": "v2", "separator": data.metadata.dimension_separator}

0 commit comments

Comments
 (0)