From d628c4af3752406a26e429fa9af06a3d3020ca1a Mon Sep 17 00:00:00 2001 From: James Fulton Date: Mon, 1 Jul 2024 09:45:16 +0000 Subject: [PATCH 1/2] fix UKV channel permutation --- pvnet_app/app.py | 48 +++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 43 insertions(+), 5 deletions(-) diff --git a/pvnet_app/app.py b/pvnet_app/app.py index 1c4a50e..1782704 100644 --- a/pvnet_app/app.py +++ b/pvnet_app/app.py @@ -76,7 +76,7 @@ # Huggingfacehub model repo and commit for PVNet (GSP-level model) "pvnet": { "name": "openclimatefix/pvnet_uk_region", - "version": "4ec1cda7e01da552439a48a642731e8f4649f60d", + "version": "92266cd9040c590a9e90ee33eafd0e7b92548be8", }, # Huggingfacehub model repo and commit for PVNet summation (GSP sum to national model) # If summation_model_name is set to None, a simple sum is computed instead @@ -90,16 +90,56 @@ "save_gsp_sum": os.getenv("SAVE_GSP_SUM", "false").lower() == "true", # Where to log information through prediction steps for this model "verbose": True, - "save_gsp_to_forecast_value_last_seven_days": True, }, + # Extra models which will be run on dev only + "pvnet_v2-sat0min-v9-batches": { + "pvnet": { + "name": "openclimatefix/pvnet_uk_region", + "version": "5bea453ebacba8303afa60dd8dac42508ecca4ab", + }, + "summation": { + "name": "openclimatefix/pvnet_v2_summation", + "version": "b905207545ae02a7456830281b9ff62b974fd546", + }, + "use_adjuster": False, + "save_gsp_sum": False, + "verbose": False, + }, + + "pvnet_v2-sat30min-v9-batches": { + "pvnet": { + "name": "openclimatefix/pvnet_uk_region", + "version": "aa73cdafd1db8df3c8b7f5ecfdb160989e7639ac", + }, + "summation": { + "name": "openclimatefix/pvnet_v2_summation", + "version": "a7fd71727f4cb2b933992b2108638985e24fa5a3", + }, + "use_adjuster": False, + "save_gsp_sum": False, + "verbose": False, + }, # single source models + "pvnet_v2-sat_delay0_only-v9-batches": { + "pvnet": { + "name": "openclimatefix/pvnet_uk_region", + "version": "319431c66261b55eaed0be09b067bf96a119d38c", + }, + "summation": { + "name": None, + "version": None, + }, + "use_adjuster": False, + "save_gsp_sum": False, + "verbose": False, + }, "pvnet_v2-ukv_only-v9-batches": { "pvnet": { "name": "openclimatefix/pvnet_uk_region", - "version": "41e38b4005b737582c4f3b7ae78f01e651f11d66", + "version": "52da9bc561ea5a6e81a778f976b1ce4633d82418", }, "summation": { "name": None, @@ -108,7 +148,6 @@ "use_adjuster": False, "save_gsp_sum": False, "verbose": False, - "save_gsp_to_forecast_value_last_seven_days": False, }, "pvnet_v2-ecmwf_only-v9-batches": { @@ -123,7 +162,6 @@ "use_adjuster": False, "save_gsp_sum": False, "verbose": False, - "save_gsp_to_forecast_value_last_seven_days": False, }, } From 99f0dfad3294bc3bdf31bcb563c25037c6d21802 Mon Sep 17 00:00:00 2001 From: James Fulton Date: Mon, 1 Jul 2024 09:58:06 +0000 Subject: [PATCH 2/2] add save flag --- pvnet_app/app.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pvnet_app/app.py b/pvnet_app/app.py index 1782704..a5c78c5 100644 --- a/pvnet_app/app.py +++ b/pvnet_app/app.py @@ -90,6 +90,7 @@ "save_gsp_sum": os.getenv("SAVE_GSP_SUM", "false").lower() == "true", # Where to log information through prediction steps for this model "verbose": True, + "save_gsp_to_forecast_value_last_seven_days": True, }, # Extra models which will be run on dev only @@ -105,6 +106,8 @@ "use_adjuster": False, "save_gsp_sum": False, "verbose": False, + "save_gsp_to_forecast_value_last_seven_days": False, + }, "pvnet_v2-sat30min-v9-batches": { @@ -119,6 +122,7 @@ "use_adjuster": False, "save_gsp_sum": False, "verbose": False, + "save_gsp_to_forecast_value_last_seven_days": False, }, # single source models @@ -134,6 +138,7 @@ "use_adjuster": False, "save_gsp_sum": False, "verbose": False, + "save_gsp_to_forecast_value_last_seven_days": False, }, "pvnet_v2-ukv_only-v9-batches": { @@ -148,6 +153,7 @@ "use_adjuster": False, "save_gsp_sum": False, "verbose": False, + "save_gsp_to_forecast_value_last_seven_days": False, }, "pvnet_v2-ecmwf_only-v9-batches": { @@ -162,6 +168,7 @@ "use_adjuster": False, "save_gsp_sum": False, "verbose": False, + "save_gsp_to_forecast_value_last_seven_days": False, }, }