From 0e06815056b2edbecc64664a152961a16d917d2d Mon Sep 17 00:00:00 2001 From: Jacob Bieker Date: Wed, 9 Aug 2023 13:04:44 +0100 Subject: [PATCH] Add test loading ICON EU data --- tests/load/nwp/test_load_nwp.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/load/nwp/test_load_nwp.py b/tests/load/nwp/test_load_nwp.py index 02c709191..d46b11764 100644 --- a/tests/load/nwp/test_load_nwp.py +++ b/tests/load/nwp/test_load_nwp.py @@ -10,6 +10,15 @@ def test_load_nwp(): assert metadata is not None +def test_load_icon_eu(): + nwp_datapipe = OpenNWP( + zarr_path="/home/jacob/Development/ocf_datapipes/tests/data/icon_eu.zarr", + provider="icon-eu", + ) + metadata = next(iter(nwp_datapipe)) + assert metadata is not None + + def test_load_latest_nwp(): base_nwp_datapipe = OpenNWP(zarr_path="tests/data/nwp_data/test.zarr") recent_obs_datapipe = OpenLatestNWPDataPipe(base_nwp_datapipe)