-
Notifications
You must be signed in to change notification settings - Fork 207
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
Duplicated GADM_IDs appeared in gadm_shapes #1094
Labels
bug
Something isn't working
Comments
My build_bus_regions log is as follows:
|
Great spot @CUIJING03 ! pypsa-earth/scripts/build_shapes.py Lines 1292 to 1297 in 1bd7f84
Moreover if you open a PR about it, it would be great if you could move this fix into the function filder_gadm pypsa-earth/scripts/build_shapes.py Line 126 in 1bd7f84
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist
I am using the current
main
branch or the latest release. Please indicate.I am running on an up-to-date
pypsa-earth
environment. Update viaconda env update -f envs/environment.yaml
.Describe the Bug
When I updated to version
0.4.0
, I found that the rulebuild_bus_regions
does not work. The associated logs indicated the error asValueError: All arrays must be of the same length
. after debuggingbuild_bus_regions.py
I found that there were multiple duplicate GADM_IDs appearing (as shown here). One additional point I would like to add, I used alternative_clustering.The first figure shows the specifics of a pair of duplicate GADM_IDs, and the second figure embodies all the duplicate GADM_IDs
The text was updated successfully, but these errors were encountered: