Skip to content

Commit

Permalink
update conftest
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Dec 19, 2024
1 parent dccebf6 commit f5572d5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,12 +361,9 @@ def nwp_mo_global_data(tmp_path_factory, time_before_present):

# Load dataset which only contains coordinates, but no data
ds = xr.open_zarr(
f"{os.path.dirname(os.path.abspath(__file__))}/test_data/nwp-no-data_gfs.zarr"
f"{os.path.dirname(os.path.abspath(__file__))}/test_data/nwp-no-data.zarr"
)

# rename dimension init_time_utc to init_time
ds = ds.rename({"init_time_utc": "init_time"})

# Last t0 to at least 4 hours ago and floor to 3-hour interval
t0_datetime_utc = time_before_present(dt.timedelta(hours=0)).floor("3h")
t0_datetime_utc = t0_datetime_utc - dt.timedelta(hours=4)
Expand Down

0 comments on commit f5572d5

Please sign in to comment.