Skip to content

Commit

Permalink
update to use blend in forecast/all (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield authored Aug 17, 2023
1 parent ce4de9c commit d8808cd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ uvicorn[standard]
pydantic
numpy
requests
nowcasting_datamodel==1.5.8
nowcasting_datamodel==1.5.10
nowcasting_dataset==3.7.12
sqlalchemy
psycopg2-binary
Expand Down
4 changes: 2 additions & 2 deletions src/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def get_forecasts_from_database(
preload_children=True,
historic=True,
include_national=False,
model_name="cnn",
model_name="blend",
)

logger.debug(f"Found {len(forecasts)} forecasts from database")
Expand All @@ -120,7 +120,7 @@ def get_forecasts_from_database(
start_created_utc=yesterday_start_datetime,
start_target_time=yesterday_start_datetime,
preload_children=True,
model_name="cnn",
model_name="blend",
)

# change to pydantic objects
Expand Down
6 changes: 3 additions & 3 deletions src/tests/test_gsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_read_latest_one_gsp(db_session, api_client):
def test_read_latest_all_gsp(db_session, api_client):
"""Check main solar/GB/gsp/forecast/all route works"""

model = get_model(session=db_session, name="cnn", version="0.0.1")
model = get_model(session=db_session, name="blend", version="0.0.1")

forecasts = make_fake_forecasts(
gsp_ids=list(range(0, 10)),
Expand Down Expand Up @@ -91,7 +91,7 @@ def test_read_latest_gsp_id_equal_to_total(db_session, api_client):
def test_read_latest_all_gsp_normalized(db_session, api_client):
"""Check main solar/GB/gsp/forecast/all normalized route works"""

model = get_model(session=db_session, name="cnn", version="0.0.1")
model = get_model(session=db_session, name="blend", version="0.0.1")

forecasts = make_fake_forecasts(
gsp_ids=list(range(0, 10)),
Expand All @@ -116,7 +116,7 @@ def test_read_latest_all_gsp_normalized(db_session, api_client):
def test_read_latest_all_gsp_historic(db_session, api_client):
"""Check main solar/GB/gsp/forecast/all historic route works"""

model = get_model(session=db_session, name="cnn", version="0.0.1")
model = get_model(session=db_session, name="blend", version="0.0.1")

forecasts = make_fake_forecasts(
gsp_ids=list(range(0, 10)),
Expand Down

0 comments on commit d8808cd

Please sign in to comment.