small bug
This commit is contained in:
parent
6b89008698
commit
4b5c037ffa
|
@ -393,7 +393,7 @@ class Building(CityObject):
|
|||
"""
|
||||
results = {}
|
||||
peak_lighting = 0
|
||||
for thermal_zone in self.thermal_zones:
|
||||
for thermal_zone in self.thermal_zones_from_internal_zones:
|
||||
lighting = thermal_zone.lighting
|
||||
for schedule in lighting.schedules:
|
||||
peak = max(schedule.values) * lighting.density * thermal_zone.total_floor_area
|
||||
|
@ -411,7 +411,7 @@ class Building(CityObject):
|
|||
"""
|
||||
results = {}
|
||||
peak_appliances = 0
|
||||
for thermal_zone in self.thermal_zones:
|
||||
for thermal_zone in self.thermal_zones_from_internal_zones:
|
||||
appliances = thermal_zone.appliances
|
||||
for schedule in appliances.schedules:
|
||||
peak = max(schedule.values) * appliances.density * thermal_zone.total_floor_area
|
||||
|
|
Loading…
Reference in New Issue
Block a user