Skip to content

Commit 75c0ca2

Browse files
committed
Update experiment
Update save_pretrained for new NWP format
1 parent 05a3878 commit 75c0ca2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pvnet/models/base_model.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,17 @@ def make_clean_data_config(input_path, output_path, placeholder="PLACEHOLDER"):
5454
config["general"]["description"] = "Config for training the saved PVNet model"
5555
config["general"]["name"] = "PVNet current"
5656

57-
for source in ["gsp", "nwp", "satellite", "hrvsatellite"]:
57+
for source in ["gsp", "satellite", "hrvsatellite"]:
5858
if source in config["input_data"]:
5959
# If not empty - i.e. if used
6060
if config["input_data"][source][f"{source}_zarr_path"] != "":
6161
config["input_data"][source][f"{source}_zarr_path"] = f"{placeholder}.zarr"
6262

63+
if "nwp" in config["input_data"]:
64+
for source in config["input_data"]["nwp"]:
65+
if config["input_data"]["nwp"][source][f"nwp_zarr_path"] != "":
66+
config["input_data"]["nwp"][source][f"nwp_zarr_path"] = f"{placeholder}.zarr"
67+
6368
if "pv" in config["input_data"]:
6469
for d in config["input_data"]["pv"]["pv_files_groups"]:
6570
d["pv_filename"] = f"{placeholder}.netcdf"

0 commit comments

Comments
 (0)