Skip to content

Commit

Permalink
Merge pull request #154 from earthdaily/fix/stacapiio-max-retries-153
Browse files Browse the repository at this point in the history
Perfect ! Thank you for the update @imanshafiei540 . I was working on the zonal_stats doc and updates today :)
  • Loading branch information
nkarasiak authored Feb 11, 2025
2 parents 5157b1d + 6fa5cd3 commit e4380fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"joblib",
"scipy",
"psutil",
"pystac-client",
"pystac-client>=0.7.0",
"pystac",
"odc-stac",
"pandas>=2",
Expand Down
3 changes: 1 addition & 2 deletions tests/test_zonalstats.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e4380fe

Please sign in to comment.