flexmeasures.data.models.reporting.aggregator
Classes
- class flexmeasures.data.models.reporting.aggregator.AggregatorReporter(sensor: Sensor, reporter_config_raw: dict | None = None)
This reporter applies an aggregation function to multiple sensors
- _compute(start: datetime, end: datetime, input_resolution: timedelta | None = None, belief_time: datetime | None = None) tb.BeliefsDataFrame
This method merges all the BeliefDataFrames into a single one, dropping all indexes but event_start, and applies an aggregation function over the columns.
- deserialize_config()
Validate the report config against a Marshmallow Schema. Ideas: - Override this method - Call superclass method to apply validation and common variables deserialization (see PandasReporter) - (Partially) extract the relevant reporter_config parameters into class attributes.
Raises ValidationErrors or ValueErrors.