Skip to content

Commit

Permalink
do not create removed files
Browse files Browse the repository at this point in the history
  • Loading branch information
fneum committed Jul 24, 2024
1 parent 09db884 commit 10346b2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions scripts/build_cop_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,11 @@ def coefficient_of_performance(delta_T, source="air"):

set_scenario_config(snakemake)

for area in ["total", "urban", "rural"]:
for source in ["air", "soil"]:
source_T = xr.open_dataarray(snakemake.input[f"temp_{source}_{area}"])
for source in ["air", "soil"]:
source_T = xr.open_dataarray(snakemake.input[f"temp_{source}_total"])

delta_T = snakemake.params.heat_pump_sink_T - source_T
delta_T = snakemake.params.heat_pump_sink_T - source_T

cop = coefficient_of_performance(delta_T, source)
cop = coefficient_of_performance(delta_T, source)

cop.to_netcdf(snakemake.output[f"cop_{source}_{area}"])
cop.to_netcdf(snakemake.output[f"cop_{source}_total"])

0 comments on commit 10346b2

Please sign in to comment.