Fix gas input for existing heat gas boilers

This commit is contained in:
Koen van Greevenbroek 2024-02-02 12:19:08 +00:00 committed by Koen van Greevenbroek
parent 6d40ff1340
commit 0006f6e5a9

View File

@ -482,7 +482,7 @@ def add_heating_capacities_installed_before_baseyear(
"Link",
nodes,
suffix=f" {name} gas boiler-{grouping_year}",
bus0=spatial.gas.nodes,
bus0="EU gas" if "EU gas" in spatial.gas.nodes else nodes + " gas",
bus1=nodes + " " + name + " heat",
bus2="co2 atmosphere",
carrier=name + " gas boiler",