small bug

This commit is contained in:
Pilar Monsalvete 2023-08-02 14:46:17 -04:00
parent 6b89008698
commit 4b5c037ffa

View File

@ -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