-
Notifications
You must be signed in to change notification settings - Fork 945
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(us-mida-pjm): upgrade US-MIDA-PJM parser with event classes #6635
base: master
Are you sure you want to change the base?
refactor(us-mida-pjm): upgrade US-MIDA-PJM parser with event classes #6635
Conversation
…refactor to use event classes
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.
Will give another review as well since this is a big PR but here are some early comments.
if target_datetime is not None: | ||
raise NotImplementedError("This parser is not yet able to parse past dates") | ||
raise ParserException( | ||
PARSER, | ||
"This parser is not yet able to parse historical data", | ||
sorted_zone_keys, | ||
) |
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.
This might be a blocker for the above though...
We generally prefer parsers that can fetch historical data (even if it's delayed) over realtime only parsers.
However in the future we might support using multiple parsers for the same data types then this would be really valuable.
Regardless I'll check with the team.
Perfect - thank you so much @VIKTORVAV99! no rush on my side |
Issue
#6011
Description
This PR upgrades the US-MIDA-PJM parser to use event classes.
I have also fixed the
.fetch_exchange()
function, and expanded it to support all possible neighbouring exchanges. I also fixed a small bug that I found.Double check
poetry run test_parser "zone_key"
pnpx prettier@2 --write .
andpoetry run format
in the top level directory to format my changes.