From 9fd42eab2b4e820b06ad09e2ce20e51dc88582dc Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Sun, 18 Aug 2024 19:20:38 +0100 Subject: [PATCH 1/2] add option to change version --- pvnet_app/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvnet_app/app.py b/pvnet_app/app.py index 068b7cc..948733b 100644 --- a/pvnet_app/app.py +++ b/pvnet_app/app.py @@ -78,7 +78,7 @@ # Huggingfacehub model repo and commit for PVNet (GSP-level model) "pvnet": { "name": "openclimatefix/pvnet_uk_region", - "version": "62e5e20ab793cee7cf94eadac870d2199501a730", + "version": os.getenv('PVNET_V2_VERSION', "62e5e20ab793cee7cf94eadac870d2199501a730"), }, # 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 From 9acd3ca02bbfd811a7cc12a8ea94de08c6b54263 Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Sun, 18 Aug 2024 19:21:55 +0100 Subject: [PATCH 2/2] add comment --- pvnet_app/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pvnet_app/app.py b/pvnet_app/app.py index 948733b..871be64 100644 --- a/pvnet_app/app.py +++ b/pvnet_app/app.py @@ -79,6 +79,8 @@ "pvnet": { "name": "openclimatefix/pvnet_uk_region", "version": os.getenv('PVNET_V2_VERSION', "62e5e20ab793cee7cf94eadac870d2199501a730"), + # We should only set PVNET_V2_VERSION in a short term solution, + # as its difficult to track which model is being used }, # 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