Skip to content

Commit

Permalink
remove default resolution of 15M, for now pass in what you want
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
  • Loading branch information
nhoening committed Oct 2, 2022
1 parent a4597f0 commit a0fb6c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion flexmeasures/data/models/planning/utils.py
Expand Up @@ -85,7 +85,7 @@ def ensure_sensor_is_set(sensor) -> Sensor:
else:
specs["soc_at_start"] = 0

# init targets
# init default targets
if "soc_targets" not in specs or specs["soc_targets"] is None:
specs["soc_targets"] = pd.Series(
np.nan,
Expand Down
6 changes: 1 addition & 5 deletions flexmeasures/data/services/scheduling.py
Expand Up @@ -26,17 +26,13 @@
This might re-enqueue the job or try a different model (which creates a new job).
"""

DEFAULT_RESOLUTION = timedelta(
minutes=15
) # make_schedule can also fallback to sensor.event_resolution, trigger_schedule also uses that


def create_scheduling_job(
sensor_id: int,
start_of_schedule: datetime,
end_of_schedule: datetime,
belief_time: datetime,
resolution: timedelta = DEFAULT_RESOLUTION,
resolution: timedelta,
consumption_price_sensor: Optional[Sensor] = None,
production_price_sensor: Optional[Sensor] = None,
inflexible_device_sensors: Optional[List[Sensor]] = None,
Expand Down

0 comments on commit a0fb6c6

Please sign in to comment.