Skip to content

Commit

Permalink
Merge pull request #334 from pypsa-meets-earth/Params_build_cop_profiles
Browse files Browse the repository at this point in the history
Add Params to Rule build_cop_profiles
  • Loading branch information
energyLS authored Jun 12, 2024
2 parents 7033330 + f6bdadf commit 4a7d51d
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 @@ -272,6 +272,8 @@ rule prepare_transport_data:


rule build_cop_profiles:
params:
heat_pump_sink_T=config["sector"]["heat_pump_sink_T"],
input:
temp_soil_total="resources/temperatures/temp_soil_total_elec_s{simpl}_{clusters}.nc",
temp_soil_rural="resources/temperatures/temp_soil_rural_elec_s{simpl}_{clusters}.nc",
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_cop_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def coefficient_of_performance(delta_T, source="air"):
for source in ["air", "soil"]:
source_T = xr.open_dataarray(snakemake.input[f"temp_{source}_{area}"])

delta_T = snakemake.config["sector"]["heat_pump_sink_T"] - source_T
delta_T = snakemake.params.heat_pump_sink_T - source_T

cop = coefficient_of_performance(delta_T, source)

Expand Down

0 comments on commit 4a7d51d

Please sign in to comment.