only add district heating (DH) for nodes with non-zero DH share

This commit is contained in:
Tom Brown 2024-01-19 16:24:39 +01:00 committed by Fabian Neumann
parent 1a477d6b32
commit 9897cd6f05

View File

@ -1718,11 +1718,15 @@ def add_heat(n, costs):
# 1e3 converts from W/m^2 to MW/(1000m^2) = kW/m^2
solar_thermal = options["solar_cf_correction"] * solar_thermal / 1e3
nodes = pop_layout.index
for name in heat_systems:
name_type = "central" if name == "urban central" else "decentral"
if name == "urban central":
nodes = dist_fraction.index[dist_fraction > 0]
else:
nodes = pop_layout.index
n.add("Carrier", name + " heat")
n.madd(