Skip to content

Commit

Permalink
reduce generation data
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Dec 16, 2024
1 parent 8ec47ee commit 50c7449
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def sites(db_session):
def generation_db_values(db_session, sites, init_timestamp):
"""Create some fake generations"""

n = 20*25 # 25 hours of readings
n = 450 # 22.5 hours of readings
start_times = [init_timestamp - dt.timedelta(minutes=x * 3) for x in range(n)]

# remove some of the most recent readings (to simulate missing timestamps)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_adjuster.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def test_adjust_forecast_with_adjuster(db_session, sites, generation_db_values,
assert len(forecast_values_df) == 5
assert forecast_values_df["forecast_power_kw"][0:4].sum() == 10
assert forecast_values_df["forecast_power_kw"][4] != 5
# note the way the tests are setup, only the horizon_minutes=1200 has some ME values
# note the way the tests are setup, only the horizon_minutes=90 has some ME values


def test_adjust_forecast_with_adjuster_no_values(db_session, sites):
Expand Down

0 comments on commit 50c7449

Please sign in to comment.