Skip to content

Commit

Permalink
Merge pull request #348 from pypsa-meets-earth/Params_ports_and_urban…
Browse files Browse the repository at this point in the history
…_percent_2

Add Params to build_population_layout
  • Loading branch information
energyLS authored Jun 13, 2024
2 parents be1d16e + 55e5559 commit 3cb090b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ rule build_solar_thermal_profiles:


rule build_population_layouts:
params:
planning_horizons=config["scenario"]["planning_horizons"][0],
input:
nuts3_shapes=pypsaearth("resources/shapes/gadm_shapes.geojson"),
urban_percent="data/urban_percent.csv",
Expand Down
5 changes: 1 addition & 4 deletions scripts/build_population_layouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@

# Filter for the year used in the workflow
urban_percent_df = urban_percent_df.loc[
(
urban_percent_df["Year"]
== snakemake.config["scenario"]["planning_horizons"][0]
)
(urban_percent_df["Year"] == snakemake.params.planning_horizons)
]

# Filter for urban percent column
Expand Down

0 comments on commit 3cb090b

Please sign in to comment.