Open doneachh opened 3 months ago
We receibe this Error in line 569 of the helper function locate_bus:
gadm_clustering is true we have a path_to_gadm, but no "GADM_ID" in the colomns of the gdf --> nothing gets executed in the if - else - block The gdf has values:
but nothing for the country 'MR' gdf[col].str.contains(co) --> Value error
--> No buses for Mauretania -> why?
@davide-f do you have an idea for this?
Mmmm the gadm analysis can be improved a lot in my opinion. The locate bus function can emply geopandas spatial joins to get rid of this try except issue.
Moreover, @finozzifa found that in -sec we have download_gadm twice one version using gadm 3.6 and the other 4.1, which summed to the pypsa-earth one are 3 version. We'll need to use only one.
Let's discuss this tomorrow and potentially happy to have a session on it
Checklist
main
branch or the latest release. Please indicate.pypsa-africa
environment. Update viaconda env update -f envs/environment.yaml
.Describe the Bug
When running pypsa earth sec for africa (layer_id == 0), we receive this error in build_industrial_distribution_key.
Error Message
If applicable, paste any terminal output to help illustrating your problem. In some cases it may also be useful to share your list of installed packages:
conda list
.