Skip to content

Commit

Permalink
Add new mo model version
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukhil Patel authored and Sukhil Patel committed Nov 26, 2024
1 parent f13ad09 commit 810ed7a
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 @@ -19,6 +19,12 @@ models:
version: 165267d34500cf0c881ed70d9318421f4e0d10f1
client: ruvnl
asset_type: wind
- name: windnet_india_mo_v3
type: pvnet
id: openclimatefix/windnet_india
version: 990bed9ad1dbb10515f830c181609b10e72c975e
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) == 6
assert len(models.models) == 7


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 + 4 * 2
assert db_session.query(ForecastValueSQL).count() == init_n_forecast_values + (4 * 2 * 192)
assert db_session.query(MLModelSQL).count() == 4 * 2
assert db_session.query(ForecastSQL).count() == init_n_forecasts + 5 * 2
assert db_session.query(ForecastValueSQL).count() == init_n_forecast_values + (5 * 2 * 192)
assert db_session.query(MLModelSQL).count() == 5 * 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 * 4
assert db_session.query(ForecastValueSQL).count() == init_n_forecast_values + (2 * 4 * 192)
assert db_session.query(ForecastSQL).count() == init_n_forecasts + 2 * 5
assert db_session.query(ForecastValueSQL).count() == init_n_forecast_values + (2 * 5 * 192)


@pytest.mark.requires_hf_token
Expand Down

0 comments on commit 810ed7a

Please sign in to comment.