From 6fa5cd330606f049c21123d26ee5da2e14ec0929 Mon Sep 17 00:00:00 2001 From: Iman Shafiei Date: Mon, 10 Feb 2025 12:48:05 -0800 Subject: [PATCH] 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