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

feat: refactor TH parser to use event classes #6510

Merged
merged 1 commit into from
Mar 9, 2024

Conversation

yujia21
Copy link
Contributor

@yujia21 yujia21 commented Feb 25, 2024

Issue

6011

Description

Preview

This PR updates the TH parser to use event classes as per new parser guidelines.

Instead of calling fetch_production from fetch_consumption as in the original code, I called the underlying _fetch_data directly as I felt it was cleaner and more future proof.

Double check

  • I have tested my parser changes locally with poetry run test_parser "zone_key"
  • I have run pnpx prettier@2 --write . and poetry run format in the top level directory to format my changes.

@github-actions github-actions bot added parser python Pull requests that update Python code labels Feb 25, 2024
Copy link
Member

@VIKTORVAV99 VIKTORVAV99 left a comment

Choose a reason for hiding this comment

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

LGTM!

Thanks for updating it!

@VIKTORVAV99
Copy link
Member

Just as a future reference, it looks like the price domain is returning 404 not found for me. But this PR does not change that so it should be addressed separately.

@VIKTORVAV99 VIKTORVAV99 merged commit ce370a6 into electricitymaps:master Mar 9, 2024
20 checks passed
@PPsyrius
Copy link
Contributor

PPsyrius commented Jul 23, 2024

@VIKTORVAV99 It seems like MEA changed their website again - I'll fix its pricing calculation later over the weekends.

I don't know if it's just me but Thailand's data in general appears to be down altogether. The original electricity generation source is still up from a quick check https://www.sothailand.com/sysgen/egat/ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parser python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants