-
Notifications
You must be signed in to change notification settings - Fork 187
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
Drop duplicate entries from AL_production.csv
data used in build_industry_demand
#1143
Drop duplicate entries from AL_production.csv
data used in build_industry_demand
#1143
Conversation
Maybe better filtering could be applied for drop duplicate entries. I would be glad to hear any suggestions. |
The duplication of the US value is already a bug that needs to be solved, by simply removing the 0 entry. |
Thanks, @hazemakhalek. Rather than this change, I will change at the source as you have suggested. I will also add error message if duplicate appears. |
Looks good to me, @yerbol-akhmetov I'm thinking there might be an even cleaner way, which I can implement later if you can't do it now. |
Thanks, @hazemakhalek. It is a really great idea. I am happy to implement it. |
@hazemakhalek, I have implemented your suggestions. |
Do you think it is ready to be merged? Or something else is needed? |
@yerbol-akhmetov, looks good to me. |
@hazemakhalek, it should not be related to current changes, as CI check happened for power version. We have not changed that part, we only change |
@yerbol-akhmetov We're finalizing the re-merging issue then will merge this and other PRs right after |
@yerbol-akhmetov great! merging this too as we successfully did the remerge. conda activate pypsa-earth
pre-commit install Then, if you are using vscode, ensure to do view->command palette->Python: select interpreter -> pypsa-earth. |
Changes proposed in this Pull Request
Good day. Here I propose to fix the problem appearing in
build_industry_demand
rule. The error is related toAL_production.csv
data that contains duplicate entries for the same country for the given year. It was noticed that the production data is taken from Wikipedia and missing countries are filled by 0. But there are some countries such as US, which was also had entries with filled 0 as well as the referenced data. The code proposes to take the highest value of production. This PR is linked to the issue #1142.Checklist
doc/release_notes.rst
is amended in the format of previous release notes, including reference to the requested PR.