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

ZA parser: Integrated new CSV file format #4637

Merged
merged 2 commits into from
Oct 3, 2022
Merged

ZA parser: Integrated new CSV file format #4637

merged 2 commits into from
Oct 3, 2022

Conversation

IV1T3
Copy link
Contributor

@IV1T3 IV1T3 commented Oct 3, 2022

This PR integrates the new CSV file format from Eskom into the ZA parser. This fixes issue #4622.

Eskom now finally substituted their value seperator "," with ";", which leaves a correct (simply parseable) CSV file format.
The new file format, however, led to a parser failure, which has been fixed in this PR.

Previous discussion on the broken CSV file: #2881

@github-actions github-actions bot added the parser label Oct 3, 2022
@VIKTORVAV99
Copy link
Member

Did they change the historical CSV files as well or do we need to keep the old code to parse historical values (from before the change)?

@IV1T3
Copy link
Contributor Author

IV1T3 commented Oct 3, 2022

There are no historical CSV files in that sense. There is always just one CSV containing values going back about 1-2 weeks from the current day (with a slight delay).

E.g.
No longer reachable: https://www.eskom.co.za/dataportal/wp-content/uploads/2022/09/Station_Build_Up.csv
Current valid file: https://www.eskom.co.za/dataportal/wp-content/uploads/2022/10/Station_Build_Up.csv

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! 🎉

@VIKTORVAV99 VIKTORVAV99 enabled auto-merge (squash) October 3, 2022 16:00
@VIKTORVAV99 VIKTORVAV99 merged commit 0f2c7af into electricitymaps:master Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants