select correct sector name in endogeneous retrofitting

This commit is contained in:
martacki 2023-12-20 20:11:37 +01:00
parent 64300c26e5
commit a292308c53

View File

@ -1990,7 +1990,9 @@ def add_heat(n, costs):
if f == 0: if f == 0:
continue continue
# get sector name ("residential"/"services"/or both "tot" for urban central) # get sector name ("residential"/"services"/or both "tot" for urban central)
sec = [x if x in name else "tot" for x in sectors][0] if 'urban central' in name: sec = 'tot'
if 'residential' in name: sec = 'residential'
if 'services' in name: sec = 'services'
# get floor aread at node and region (urban/rural) in m^2 # get floor aread at node and region (urban/rural) in m^2
floor_area_node = ( floor_area_node = (