From 066ad90bfb21f1fda77c67b28243db315d93da44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Kr=C3=B6ber?= Date: Mon, 10 Feb 2025 10:43:40 +0100 Subject: [PATCH] fix: np.nan compatibility for numpy>=2.0.0 :wrench: --- semantique/datacube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/semantique/datacube.py b/semantique/datacube.py index 3ffbb16e..0a39fd99 100644 --- a/semantique/datacube.py +++ b/semantique/datacube.py @@ -937,7 +937,7 @@ def _load(self, metadata, extent): # return extent array as NaN in case of no data if not len(item_coll): - empty_arr = xr.full_like(extent, np.NaN) + empty_arr = xr.full_like(extent, np.nan) return empty_arr # reauth