Skip to content

Commit

Permalink
Fix calculation of belief time (by handing the problem over to timely…
Browse files Browse the repository at this point in the history
… beliefs)

Signed-off-by: F.N. Claessen <felix@seita.nl>
  • Loading branch information
Flix6x committed Feb 28, 2022
1 parent 47b0bef commit b6603de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flexmeasures/data/services/scheduling.py
Expand Up @@ -177,7 +177,7 @@ def make_schedule(
ts_value_schedule = [
TimedBelief(
event_start=dt,
belief_horizon=dt.astimezone(pytz.utc) - belief_time.astimezone(pytz.utc),
belief_time=belief_time,
event_value=-value,
sensor=sensor,
source=data_source,
Expand Down

0 comments on commit b6603de

Please sign in to comment.