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 03e2500 commit f6ae2f8Copy full SHA for f6ae2f8
src/zarr/api/asynchronous.py
@@ -554,7 +554,7 @@ async def array(
554
555
# setup dtype
556
kw_dtype = kwargs.get("dtype")
557
- if kw_dtype is None:
+ if kw_dtype is None and hasattr(data, "dtype"):
558
kwargs["dtype"] = data.dtype
559
else:
560
kwargs["dtype"] = kw_dtype
src/zarr/core/array.py
@@ -3850,7 +3850,7 @@ async def from_array(
3850
filters = data.filters
3851
if compressors is None:
3852
compressors = data.compressors
3853
- if serializer is None:
+ if serializer is "auto":
3854
serializer = data.serializer
3855
if fill_value is None:
3856
fill_value = data.fill_value
0 commit comments