Skip to content

Commit

Permalink
dont smmooth for DA forecast
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Sep 19, 2024
1 parent 13ebbdb commit 87029ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/india_api/internal/service/regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,13 @@ def get_forecast_timeseries_route(
region: The region to get the forecast for.
forecast_horizon: The time horizon to get the data for. Can be 'latest', 'horizon' or 'day ahead'
forecast_horizon_minutes: The number of minutes to get the forecast for. forecast_horizon must be 'horizon'
smooth_flag: If the forecast should be smoothed or not.
smooth_flag: If the forecast should be smoothed or not. Note for DA forecast this is always False.
"""
values: list[PredictedPower] = []

if forecast_horizon == ForecastHorizon.day_ahead:
smooth_flag = False

try:
if source == "wind":
values = db.get_predicted_wind_power_production_for_location(
Expand Down

0 comments on commit 87029ef

Please sign in to comment.