-
Notifications
You must be signed in to change notification settings - Fork 946
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
refactor: upgrade CA-YT with event classes #6062
refactor: upgrade CA-YT with event classes #6062
Conversation
Upgrade the parser to use the ProductionBreakdownList, ProductionMix, StorageMix, and ZoneKey classes. This should yield no functional change. Additionally: - Comply with Black's 88-column default line length limit. - Define global constants to replace magic values. - Eliminate a few unnecessary variables. Refs: electricitymaps#6011, electricitymaps#6062
Pass data to the ProductionMix object using the add_value method instead of during object instantiaton. Refs: electricitymaps#6011, electricitymaps#6062
49586f0
to
103b077
Compare
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.
A few things to check on before this can proceede
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.
LGTM!
Thanks for doing this!
I took the opportunity to rename the parser to match what we have discussed internally, I hope you don't mind.
I don't mind at all! Thanks for accepting this! |
* refactor: upgrade CA-YT with event classes Upgrade the parser to use the ProductionBreakdownList, ProductionMix, StorageMix, and ZoneKey classes. This should yield no functional change. Additionally: - Comply with Black's 88-column default line length limit. - Define global constants to replace magic values. - Eliminate a few unnecessary variables. Refs: #6011, #6062 * refactor: switch to ProductionMix.add_value method Pass data to the ProductionMix object using the add_value method instead of during object instantiaton. Refs: #6011, #6062 * tiny cleanup * rename CA_YT.py to YUKONENERGY.py --------- Co-authored-by: Viktor Andersson <30777521+VIKTORVAV99@users.noreply.github.com>
Issue
Refs: #6011, #6062
Description
Upgrade the parser to use the ProductionBreakdownList, ProductionMix, StorageMix, and ZoneKey classes. This should yield no functional change. Additionally:
Double check
poetry run test_parser "zone_key"
pnpx prettier --write .
andpoetry run format
to format my changes.