Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Oct 15, 2024
1 parent d5c2407 commit 1b2a45a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions pvnet_app/model_configs/pydantic_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,25 +100,21 @@ def get_all_models(

models = config_pvnet_v2_model(models)

print(len(models.models))
if get_ecmwf_only:
log.info("Using ECMWF model only")
models.models = [model for model in models.models if model.ecmwf_only]

print(len(models.models))
if get_day_ahead_only:
log.info("Using Day Ahead model only")
models.models = [model for model in models.models if model.day_ahead]
else:
log.info("Not using Day Ahead model")
models.models = [model for model in models.models if not model.day_ahead]

print(len(models.models))
if not run_extra_models and not get_day_ahead_only and not get_ecmwf_only:
log.info("Not running extra models")
models.models = [model for model in models.models if model.name == "pvnet_v2"]

print(len(models.models))
if use_ocf_data_sampler:
log.info("Using OCF Data Sampler")
models.models = [model for model in models.models if model.uses_ocf_data_sampler]
Expand Down
1 change: 1 addition & 0 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ def test_app_no_sat(
os.environ["RUN_EXTRA_MODELS"] = "True"
os.environ["SAVE_GSP_SUM"] = "True"
os.environ["DAY_AHEAD_MODEL"] = "False"
os.environ["USE_OCF_DATA_SAMPLER"] = "True"

# Run prediction
# Thes import needs to come after the environ vars have been set
Expand Down

0 comments on commit 1b2a45a

Please sign in to comment.