Skip to content

Commit

Permalink
Add extra wind model
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukhil Patel authored and Sukhil Patel committed Nov 22, 2024
1 parent fe4ff90 commit 59fa30c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions india_forecast_app/models/all_models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ models:
version: 546baded3d4216736d8ee8d6798d47235bd72b08
client: ruvnl
asset_type: wind
- name: windnet_india_mo_v2
type: pvnet
id: openclimatefix/windnet_india
version: 165267d34500cf0c881ed70d9318421f4e0d10f1
client: ruvnl
asset_type: wind
# RU client solar
- name: pvnet_india
type: pvnet
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_pydantic_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
def test_get_all_models():
"""Test for getting all models"""
models = get_all_models()
assert len(models.models) == 5
assert len(models.models) == 6


def test_get_all_models_client():
Expand Down
10 changes: 5 additions & 5 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ def test_app(
assert result.exit_code == 0

if write_to_db:
assert db_session.query(ForecastSQL).count() == init_n_forecasts + 3 * 2
assert db_session.query(ForecastValueSQL).count() == init_n_forecast_values + (3 * 2 * 192)
assert db_session.query(MLModelSQL).count() == 3 * 2
assert db_session.query(ForecastSQL).count() == init_n_forecasts + 4 * 2
assert db_session.query(ForecastValueSQL).count() == init_n_forecast_values + (4 * 2 * 192)
assert db_session.query(MLModelSQL).count() == 4 * 2
else:
assert db_session.query(ForecastSQL).count() == init_n_forecasts
assert db_session.query(ForecastValueSQL).count() == init_n_forecast_values
Expand All @@ -183,8 +183,8 @@ def test_app_no_pv_data(
result = run_click_script(app, args)
assert result.exit_code == 0

assert db_session.query(ForecastSQL).count() == init_n_forecasts + 2 * 3
assert db_session.query(ForecastValueSQL).count() == init_n_forecast_values + (2 * 3 * 192)
assert db_session.query(ForecastSQL).count() == init_n_forecasts + 2 * 4
assert db_session.query(ForecastValueSQL).count() == init_n_forecast_values + (2 * 4 * 192)


@pytest.mark.requires_hf_token
Expand Down

0 comments on commit 59fa30c

Please sign in to comment.