From b4c31c7b78fe1ad26f1dd2e6b524adb7916ae2e4 Mon Sep 17 00:00:00 2001 From: veenstrajelmer Date: Fri, 9 Aug 2024 16:41:18 +0200 Subject: [PATCH] extra assertion for valid_time dimension --- tests/test_download.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_download.py b/tests/test_download.py index a56767708..55793bc82 100644 --- a/tests/test_download.py +++ b/tests/test_download.py @@ -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