flexmeasures.data.queries.annotations
Functions
- flexmeasures.data.queries.annotations.filter_by_belief_time(query: Select, beliefs_after: datetime | None = None, beliefs_before: datetime | None = None) Select
Restrict a query to annotations recorded within the given belief-time window.
Annotations without a belief time are never filtered out: a missing belief time means the recording moment is unknown, not that the annotation was recorded in the future.
- flexmeasures.data.queries.annotations.query_account_annotations(account_id: int, annotations_after: datetime | None = None, annotations_before: datetime | None = None, beliefs_after: datetime | None = None, beliefs_before: datetime | None = None, sources: list[DataSource] | None = None, annotation_type: str | None = None) Select
Match annotations assigned to the given account.
- flexmeasures.data.queries.annotations.query_asset_annotations(asset_id: int, annotations_after: datetime | None = None, annotations_before: datetime | None = None, beliefs_after: datetime | None = None, beliefs_before: datetime | None = None, sources: list[DataSource] | None = None, annotation_type: str | None = None) Select
Match annotations assigned to the given asset.
- flexmeasures.data.queries.annotations.query_sensor_annotations(sensor_id: int, annotations_after: datetime | None = None, annotations_before: datetime | None = None, beliefs_after: datetime | None = None, beliefs_before: datetime | None = None, sources: list[DataSource] | None = None, annotation_type: str | None = None) Select
Match annotations assigned to the given sensor.