-
Notifications
You must be signed in to change notification settings - Fork 906
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
Upgrade IE parser to ParserFunctions #6042
Conversation
config/zones/GB-NIR.yaml
Outdated
productionPerModeForecast: IE.fetch_wind_forecasts | ||
production: SMARTGRIDDASHBOARD.fetch_production | ||
productionPerModeForecast: SMARTGRIDDASHBOARD.fetch_wind_forecasts | ||
generationForecast: SMARTGRIDDASHBOARD.fetch_generation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently we don't have a generation
type for the parsers functions? Only generationForecast
?
parsers/SMARTGRIDDASHBOARD.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's easier to review I can rename this back to the original name and then just switch back before merging it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds like a good idea :) Similarly, is there a file for the tests we previously used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We did not have any tests before 😅
/review |
PR Analysis
PR Feedback
How to useInstructions
|
@florianscheidl adding you as a reviewer for this as I saw you where working on ELE-3449, this PR will give us some additional data that could be used to guide the estimation models. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks very nice to me :)
I left some comments asking for clarification regarding fetch_generation and fetch_production, which confused me a bit.
I'll rename things again and then merge this 🙂 |
* WIP upgrade parser functions * upgrade production * Add total generation * add consumption test * fix * Add more tests * Fix exception handling in SMARTGRIDDASHBOARD.py * temp rename of parser file * switch back in yaml files * add missing dots * format * rename function and parser --------- Co-authored-by: Florian Scheidl <36441589+florianscheidl@users.noreply.github.com>
Issue
The IE parser was not using ParserFunctions
Description
This PR upgrades the existing parser to use parser functions as well as adding a parser function for total generation.
Double check
poetry run test_parser "zone_key"
pnpx prettier --write .
andpoetry run format
to format my changes.