flexmeasures
flexmeasures copied to clipboard
[reporting] Add flag to filter the data with a the latest version source
Description
This PR introduces a new (optional) flag for the input use_latest_version_only = False
. This flag controls whether to only use the latest source version among the sources for a given sensor.
For example, if we have a Sensor
Profit with data coming from two sources (Profit Reporter v1
and Profit Reporter v2
), use_latest_version_only = True
will only consider the data with source Profit Reporter v2
for the calculations.
- [X] I agree to contribute to the project under Apache 2 License.
- [X] To the best of my knowledge, the proposed patch is not based on code under GPL or other license that is incompatible with FlexMeasures