Skip to content

Commit

Permalink
Issue/adjuster smooth (#126)
Browse files Browse the repository at this point in the history
* smooth the adjuster results

* move location of smoothing

* change to 30 mins interval, helps with missing data

* adjust values on average per hour

* round in sql query
  • Loading branch information
peterdudfield authored Nov 19, 2024
1 parent 66b9b30 commit edd10f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion india_forecast_app/adjuster.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_me_values(
query = session.query(
func.avg(ForecastValueSQL.forecast_power_kw - GenerationSQL.generation_power_kw),
# create hour column
(cast(ForecastValueSQL.horizon_minutes, INT) / 60).label("horizon_hour"),
(cast(ForecastValueSQL.horizon_minutes / 60, INT)).label("horizon_hour"),
)

# join
Expand Down

0 comments on commit edd10f6

Please sign in to comment.