Skip to content

Commit

Permalink
fix(tests): remove unused import and update zonal_stats method call
Browse files Browse the repository at this point in the history
  • Loading branch information
imanshafiei540 committed Feb 10, 2025
1 parent 687fff3 commit 6fa5cd3
Showing 1 changed file with 1 addition and 2 deletions.
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 6fa5cd3

Please sign in to comment.