Skip to content

Commit ab46b06

Browse files
committed
Fix nodata retrieval logic to ensure compatibility with rioxarray
1 parent 796a99c commit ab46b06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

odc/geo/_xr_interop.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,10 +1025,10 @@ def nodata(self) -> Nodata:
10251025

10261026
for k in ["nodata", "_FillValue"]:
10271027
nodata = attrs.get(k, ())
1028-
if nodata == ():
1028+
if nodata is ():
10291029
nodata = encoding.get(k, ())
10301030

1031-
if nodata == ():
1031+
if nodata is ():
10321032
continue
10331033

10341034
if nodata is None:

0 commit comments

Comments
 (0)