Skip to content

Commit

Permalink
Merge pull request #379 from pypsa-meets-africa/fix-gadm-cluster
Browse files Browse the repository at this point in the history
add crs input to gadm function
  • Loading branch information
pz-max authored Jun 14, 2022
2 parents f2e7288 + 128f818 commit 7182338
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doc/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ Upcoming Release

* Revise dropnan for regions: `PR #366 <https://github.com/pypsa-meets-africa/pypsa-africa/pull/366>`_

* Fix bug in GADM clustering. Missing crs input. `PR #379 <https://github.com/pypsa-meets-africa/pypsa-africa/pull/379>`_


PyPSA-Africa 0.0.2 (6th April 2022)
=====================================

Expand Down
3 changes: 2 additions & 1 deletion scripts/cluster_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand Down

0 comments on commit 7182338

Please sign in to comment.