solved bug in _calculate_working_hours

This commit is contained in:
Pilar Monsalvete 2023-06-07 14:40:44 -04:00
parent c6852e5af6
commit d67c5c438b
2 changed files with 5 additions and 5 deletions

View File

@ -616,8 +616,8 @@ class Building(CityObject):
for key, item in _working_hours.items(): for key, item in _working_hours.items():
saved_values = _working_hours_per_thermal_zone[key] saved_values = _working_hours_per_thermal_zone[key]
for i, value in enumerate(item): for i, value in enumerate(item):
if saved_values[i] == 1: _working_hours[key][i] = max(_working_hours[key][i], saved_values[i])
value = 1
_total_hours = 0 _total_hours = 0
for key in _working_hours: for key in _working_hours:
hours = sum(_working_hours[key]) hours = sum(_working_hours[key])