Skip to content

Commit

Permalink
extra assertion for valid_time dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Aug 9, 2024
1 parent ed77eb0 commit b4c31c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ def test_download_era5(file_nc_era5_pattern):
assert len(file_list) == 2

ds = xr.open_mfdataset(file_nc_era5_pattern)

assert 'valid_time' in ds.dims # TODO: if this fails, remove the exception below and in preprocess_ERA5

timedim = 'time'
# datasets retrieved with new cds-beta have valid_time instead of time dimn/varn
# https://forum.ecmwf.int/t/new-time-format-in-era5-netcdf-files/3796/5?u=jelmer_veenstra
Expand Down

0 comments on commit b4c31c7

Please sign in to comment.