From ac2ff810102338ac9cb1e437584f051cdca5bdca Mon Sep 17 00:00:00 2001 From: lbferreira Date: Tue, 10 Dec 2024 08:52:05 -0600 Subject: [PATCH] Fix nodata check to use 'is' instead of '==' for empty tuple comparison --- odc/geo/_xr_interop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odc/geo/_xr_interop.py b/odc/geo/_xr_interop.py index 2ca3cb0..a8eea3c 100644 --- a/odc/geo/_xr_interop.py +++ b/odc/geo/_xr_interop.py @@ -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: