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 f3b83ed commit 634a857Copy full SHA for 634a857
xarray/backends/zarr.py
@@ -877,9 +877,8 @@ def open_store_variable(self, name):
877
if zarr_array.fill_value is not None:
878
attributes["_FillValue"] = zarr_array.fill_value
879
elif "_FillValue" in attributes:
880
- original_zarr_dtype = zarr_array.metadata.data_type
881
attributes["_FillValue"] = FillValueCoder.decode(
882
- attributes["_FillValue"], original_zarr_dtype.value
+ attributes["_FillValue"], zarr_array.dtype
883
)
884
885
return Variable(dimensions, data, attributes, encoding)
0 commit comments