Skip to content

Commit

Permalink
Merge pull request #335 from pypsa-meets-earth/Params_build_heat_demand
Browse files Browse the repository at this point in the history
Add Params to Rule build_heat_demand
  • Loading branch information
energyLS authored Jun 12, 2024
2 parents 4a7d51d + ddd1212 commit 44716a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@ rule build_clustered_population_layouts:


rule build_heat_demand:
params:
snapshots=config["snapshots"],
input:
pop_layout_total="resources/population_shares/pop_layout_total.nc",
pop_layout_urban="resources/population_shares/pop_layout_urban.nc",
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_heat_demand.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
snakemake = mock_snakemake("build_heat_demand", simpl="", clusters="10")
sets_path_to_root("pypsa-earth-sec")

time = pd.date_range(freq="h", **snakemake.config["snapshots"])
time = pd.date_range(freq="h", **snakemake.params.snapshots)
cutout_config = snakemake.input.cutout
cutout = atlite.Cutout(cutout_config).sel(time=time)

Expand Down

0 comments on commit 44716a8

Please sign in to comment.