diff --git a/doc/release_notes.rst b/doc/release_notes.rst index 2f5a2e669..9c5e71fe5 100644 --- a/doc/release_notes.rst +++ b/doc/release_notes.rst @@ -63,6 +63,9 @@ Upcoming Release * Revise dropnan for regions: `PR #366 `_ +* Fix bug in GADM clustering. Missing crs input. `PR #379 `_ + + PyPSA-Africa 0.0.2 (6th April 2022) ===================================== diff --git a/scripts/cluster_network.py b/scripts/cluster_network.py index ca27c0716..9ceeda79a 100644 --- a/scripts/cluster_network.py +++ b/scripts/cluster_network.py @@ -309,7 +309,8 @@ def n_bounds(model, n_id): def busmap_for_gadm_clusters(n, gadm_level): - gdf = get_GADM_layer(country_list, gadm_level) + geo_crs = snakemake.config["crs"]["geo_crs"] # load default crs + gdf = get_GADM_layer(country_list, gadm_level, geo_crs) def locate_bus(coords, co):