Skip to content

Commit

Permalink
Fix nodata check to use 'is' instead of '==' for empty tuple comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
lbferreira committed Dec 10, 2024
1 parent 97d38d2 commit ac2ff81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions odc/geo/_xr_interop.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,10 +1025,10 @@ def nodata(self) -> Nodata:

for k in ["nodata", "_FillValue"]:
nodata = attrs.get(k, ())
if nodata == ():
if nodata is ():
nodata = encoding.get(k, ())

if nodata == ():
if nodata is ():
continue

if nodata is None:
Expand Down

0 comments on commit ac2ff81

Please sign in to comment.