Update scripts/add_existing_baseyear.py

This commit is contained in:
Fabian Neumann 2023-01-30 11:55:40 +01:00 committed by GitHub
parent 984ab9350c
commit 4a2da0a5f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -563,6 +563,9 @@ if __name__ == "__main__":
add_heating_capacities_installed_before_baseyear(n, baseyear, grouping_years_heat,
ashp_cop, gshp_cop, time_dep_hp_cop, costs, default_lifetime)
if options.get("cluster_heat_buses", False):
cluster_heat_buses(n)
n.meta = dict(snakemake.config, **dict(wildcards=dict(snakemake.wildcards)))
n.export_to_netcdf(snakemake.output[0])