Update prepare_sector_network.py

bug fix when calculating urban central heat demand
This commit is contained in:
lisazeyen 2021-07-09 13:56:44 +02:00 committed by GitHub
parent 76f36d0a1a
commit 0127c47035
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1229,7 +1229,7 @@ def add_heat(n, costs):
heat_load = heat_demand[[sector + " water",sector + " space"]].groupby(level=1,axis=1).sum()[nodes[name]].multiply(factor)
if name == "urban central":
heat_load = heat_demand.groupby(level=1,axis=1).sum()[nodes[name]].multiply(urban_fraction[nodes[name]] * (1 + options['district_heating_loss']))
heat_load = heat_demand.groupby(level=1,axis=1).sum()[nodes[name]].multiply(factor * (1 + options['district_heating_loss']))
n.madd("Load",
nodes[name],