From 41070db782606f201c13b5a8421b2ce4e6159583 Mon Sep 17 00:00:00 2001 From: Jacob Bieker Date: Wed, 6 Sep 2023 10:01:17 +0100 Subject: [PATCH] Update path (#5) --- nwp/jobs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nwp/jobs.py b/nwp/jobs.py index e9b16be..942c85e 100644 --- a/nwp/jobs.py +++ b/nwp/jobs.py @@ -2,15 +2,15 @@ from nwp.assets.dwd.common import IconConfig -base_path = "/mnt/storage_b/data/ocf/data/ocf/solar_pv_nowcasting/nowcasting_dataset_pipeline/NWP/DWD" +base_path = "/mnt/storage_b/data/ocf/solar_pv_nowcasting/nowcasting_dataset_pipeline/NWP/DWD" def build_config_on_runtime(model, run, delay=0): config = IconConfig(model=model, run=run, delay=delay, - folder=f"{base_path}/ICON_Global/{run}", - zarr_path=f"{base_path}/ICON_Global/{run}/{run}.zarr.zip") + folder=f"{base_path}/{'ICON_Global' if model == 'global' else 'ICON_EU'}/{run}", + zarr_path=f"{base_path}/{'ICON_Global' if model == 'global' else 'ICON_EU'}/{run}/{run}.zarr.zip") config_dict = {"delay": config.delay, "folder": config.folder, "model": config.model, "run": config.run, "zarr_path": config.zarr_path} return config_dict