Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[reporting] Add flag to filter the data with a the latest version source #1045

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

victorgarcia98
Copy link
Contributor

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.


  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on code under GPL or other license that is incompatible with FlexMeasures

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Copy link
Contributor

@Flix6x Flix6x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very useful, but I see a few potential complications.

flexmeasures/data/models/reporting/pandas_reporter.py Outdated Show resolved Hide resolved
flexmeasures/data/models/reporting/pandas_reporter.py Outdated Show resolved Hide resolved
flexmeasures/data/models/reporting/pandas_reporter.py Outdated Show resolved Hide resolved
flexmeasures/data/models/reporting/pandas_reporter.py Outdated Show resolved Hide resolved
flexmeasures/data/schemas/reporting/pandas_reporter.py Outdated Show resolved Hide resolved
…ect the last version among all the sources with the same (name, type, model)

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
@victorgarcia98 victorgarcia98 marked this pull request as ready for review April 30, 2024 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants