Skip to content

Commit

Permalink
Small change to resample test
Browse files Browse the repository at this point in the history
  • Loading branch information
bdestombe committed Jul 27, 2023
1 parent 0a8f235 commit 019d78f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ' \
Expand Down

0 comments on commit 019d78f

Please sign in to comment.