Skip to content

Commit

Permalink
add new wind model
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Dec 20, 2024
1 parent c34aa8f commit ca6685f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions india_forecast_app/models/all_models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ models:
client: ad
asset_type: wind
adjuster_average_minutes: 15
- name: windnet_ad_sites_generation_delay
type: pvnet
id: openclimatefix/windnet_ad_sites
version: bced479c5c3ab198bfce7d5cb4e02f8679be3297
client: ad
asset_type: wind
adjuster_average_minutes: 15
# this is just a dummy one
- name: dummy
type: dummy
Expand Down
8 changes: 4 additions & 4 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,13 @@ def test_app_client_ad(

app_run(timestamp=None, write_to_db=True)

# 2 pv models, 1 wind model
# 2 pv models, 2 wind model
# x2 for adjuster
n_forecasts = 3 * 2
# one models is 8 hours, two model is 4 hours
n_forecasts = 4 * 2
# one models is 8 hours, three model is 4 hours
# x 4 for each 15 minutes
# x 2 for adjuster
n_forecast_values = (8 + 4 + 4) * 4 * 2
n_forecast_values = (8 + 4 + 4 + 4) * 4 * 2

assert db_session.query(ForecastSQL).count() == init_n_forecasts + n_forecasts
assert db_session.query(ForecastValueSQL).count() == init_n_forecast_values + n_forecast_values
Expand Down

0 comments on commit ca6685f

Please sign in to comment.