Skip to content

Commit

Permalink
Merge branch 'main' into utsav-pal-patch-1(-Turn-off-logs-from-aiobot…
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield authored Feb 26, 2025
2 parents 53632c4 + 4813f3c commit f3ad8ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/pvnet_app/model_configs/all_models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ models:
version: f3135c47eb0f21320dbd8c590bdd03dfafc39bca
summation:
repo: openclimatefix/pvnet_v2_summation
version: ffac655f9650b81865d96023baa15839f3ce26ec
version: 8934ff871b39d528448040dca82722a6ab4680cd
use_adjuster: True
save_gsp_sum: False
verbose: True
Expand All @@ -20,7 +20,7 @@ models:
version: d81a9cf8adca49739ea6a3d031e36510f44744a1
summation:
repo: openclimatefix/pvnet_v2_summation
version: dcfdc17fda8e48c387122614bec8b284eaa868b9
version: 74bd8005fe752946655ace879dda81d3c04093dc

# single source models
- name: pvnet_v2-sat0-only-samples-v1"
Expand All @@ -29,7 +29,7 @@ models:
version: 158f9aeb006dddc10ef67612a91e7175a87b8dd0
summation:
repo: openclimatefix/pvnet_v2_summation
version: adbf9e7797fee9a5050beb8c13841696e72f99ef
version: 4745de8a855dec9048b835c82750caf16221c8e0

- name: pvnet_v2-ukv-only-samples-v1
pvnet:
Expand All @@ -46,7 +46,7 @@ models:
version: 20b882bd4ceaee190a1c994d861f8e5d553ea843
summation:
repo: openclimatefix/pvnet_v2_summation
version: 9ddd4845cbb97b91e16de0c3370f666e1eab1c30
version: ce87d0f4d7c0d8def2d404fa079ee834ef527023
ecmwf_only: True
uses_satellite_data: False
# This is the old model for pvnet and pvnet_ecmwf
Expand Down
13 changes: 6 additions & 7 deletions tests/test_app_legacy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Test the app using the legacy dataloader - ocf_datapipes"""

import os
import tempfile

Expand All @@ -12,8 +14,7 @@
from pvnet_app.model_configs.pydantic_models import get_all_models


# Its nice to have this here, so we can run the latest version in production, but still use the old models
# Once we have re trained PVnet summation models we can remove this

def test_app_ecwmf_only(test_t0, db_session, nwp_ecmwf_data, db_url):
"""Test the app for the case running model just on ecmwf"""

Expand Down Expand Up @@ -46,7 +47,7 @@ def test_app_ecwmf_only(test_t0, db_session, nwp_ecmwf_data, db_url):

# Only the models which don't use satellite will be run in this case
# The models below are the only ones which should have been run
all_models = get_all_models(get_ecmwf_only=True)
all_models = get_all_models(get_ecmwf_only=True, use_ocf_data_sampler=False)

# Check correct number of forecasts have been made
# (317 GSPs + 1 National + maybe GSP-sum) = 318 or 319 forecasts
Expand Down Expand Up @@ -78,10 +79,8 @@ def test_app_ecwmf_only(test_t0, db_session, nwp_ecmwf_data, db_url):
assert len(db_session.query(ForecastValueSevenDaysSQL).all()) == expected_forecast_results * 16


# test legacy models
# Its nice to have this here, so we can run the latest version in production, but still use the old models
# Once we have re trained PVnet summation models we can remove this
def test_app_ocf_datapipes(test_t0, db_session, nwp_ukv_data, nwp_ecmwf_data, sat_5_data, db_url):

def test_app(test_t0, db_session, nwp_ukv_data, nwp_ecmwf_data, sat_5_data, db_url):
"""Test the app running the day ahead model"""

with tempfile.TemporaryDirectory() as tmpdirname:
Expand Down

0 comments on commit f3ad8ac

Please sign in to comment.