From 687fff36bb43d8323e01525db11a367d6d2d18c6 Mon Sep 17 00:00:00 2001 From: Iman Shafiei Date: Mon, 10 Feb 2025 12:25:47 -0800 Subject: [PATCH 1/2] fix(setup): update pystac-client version requirement to >=0.7.0 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0a43cef7..6c544e6f 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ "joblib", "scipy", "psutil", - "pystac-client", + "pystac-client>=0.7.0", "pystac", "odc-stac", "pandas>=2", From 6fa5cd330606f049c21123d26ee5da2e14ec0929 Mon Sep 17 00:00:00 2001 From: Iman Shafiei Date: Mon, 10 Feb 2025 12:48:05 -0800 Subject: [PATCH 2/2] fix(tests): remove unused import and update zonal_stats method call --- tests/test_zonalstats.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_zonalstats.py b/tests/test_zonalstats.py index 48c4cb4f..b361a7bd 100644 --- a/tests/test_zonalstats.py +++ b/tests/test_zonalstats.py @@ -1,6 +1,5 @@ import numpy as np import xarray as xr -import rioxarray as rxr import geopandas as gpd from shapely.geometry import Polygon import earthdaily @@ -44,7 +43,7 @@ def setUp(self, constant=np.random.randint(1, 12)): def test_basic(self): zonalstats = earthdaily.earthdatastore.cube_utils.zonal_stats( - self.datacube, self.gdf, method="numpy", reducers=["min", "max"], all_touched=False, label="label") + self.datacube, self.gdf, method="numpy", reducers=["min", "max"], all_touched=False) for operation in ["min", "max"]: self._check_results( zonalstats["first_var"].sel(zonal_statistics=operation).values, operation=operation