From 019d78f3714c34f525612b28aef69e51f74caf3e Mon Sep 17 00:00:00 2001 From: Bas des Tombe Date: Thu, 27 Jul 2023 22:31:44 +0200 Subject: [PATCH] Small change to resample test --- tests/test_datastore.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_datastore.py b/tests/test_datastore.py index b5851803..8df6a0a6 100644 --- a/tests/test_datastore.py +++ b/tests/test_datastore.py @@ -556,14 +556,12 @@ def read_data_from_fp_numpy(fp): def test_resample_datastore(): - import xarray as xr - filepath = data_dir_single_ended ds = read_silixa_files( directory=filepath, timezone_netcdf='UTC', file_ext='*.xml') assert ds.time.size == 3 - ds_resampled = DataStore(xr.Dataset(ds).resample(time="47S").mean()) + ds_resampled = DataStore(ds.resample(time="47S").mean()) assert ds_resampled.time.size == 2 assert ds_resampled.st.dims == ('x', 'time'), 'The dimension have to ' \