flexmeasures.data.schemas.scheduling.process
Classes
- class flexmeasures.data.schemas.scheduling.process.OptimizationDirection(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
- class flexmeasures.data.schemas.scheduling.process.ProcessSchedulerFlexModelSchema(sensor: Sensor, start: datetime, end: datetime, *args, **kwargs)
- __init__(sensor: Sensor, start: datetime, end: datetime, *args, **kwargs)
Pass start and end to convert time_restrictions into a time series and sensor as a fallback mechanism for the process_type
- get_mask_from_events(events: list[dict[str, str]] | None) Series
Convert events to a mask of the time periods that are valid
- Parameters:
events – list of events defined as dictionaries with a start and duration
- Returns:
mask of the allowed time periods
- class flexmeasures.data.schemas.scheduling.process.ProcessType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)