File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -3992,7 +3992,7 @@ async def from_array(
39923992 else :
39933993 compressors = "auto"
39943994 if serializer == "keep" :
3995- if zarr_format == 3 :
3995+ if zarr_format == 3 and data . metadata . zarr_format == 3 :
39963996 serializer = cast (SerializerLike , data .serializer )
39973997 else :
39983998 serializer = "auto"
Original file line number Diff line number Diff line change @@ -1365,6 +1365,7 @@ async def test_creation_from_other_zarr_format(
13651365 assert result .fill_value == src .fill_value
13661366 assert result .dtype == src .dtype
13671367 assert result .chunks == src .chunks
1368+ assert result .metadata .zarr_format == new_format
13681369 if src_format == new_format :
13691370 assert result .metadata == src .metadata
13701371
You can’t perform that action at this time.
0 commit comments