Skip to content

Commit ae2a7f1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d684dad commit ae2a7f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cupy_xarray/kvikio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def open_store_variable(self, name, zarr_array):
163163
}
164164
# _FillValue needs to be in attributes, not encoding, so it will get
165165
# picked up by decode_cf
166-
if getattr(zarr_array, "fill_value") is not None:
166+
if zarr_array.fill_value is not None:
167167
attributes["_FillValue"] = zarr_array.fill_value
168168

169169
return Variable(dimensions, data, attributes, encoding)

0 commit comments

Comments
 (0)