Corrected bug in distribution_systems_electrical_consumption, but need to be confirmed with pilar
This commit is contained in:
parent
31a4893ed8
commit
f865490ff9
|
@ -743,8 +743,11 @@ class Building(CityObject):
|
||||||
|
|
||||||
for key, item in self._distribution_systems_electrical_consumption.items():
|
for key, item in self._distribution_systems_electrical_consumption.items():
|
||||||
for i in range(0, len(item)):
|
for i in range(0, len(item)):
|
||||||
|
_working_hours_value = _working_hours[key]
|
||||||
|
if len(item) == 12:
|
||||||
|
_working_hours_value = _working_hours[key][i]
|
||||||
self._distribution_systems_electrical_consumption[key][i] += (
|
self._distribution_systems_electrical_consumption[key][i] += (
|
||||||
_peak_load * _consumption_fix_flow * _working_hours[key] * cte.WATTS_HOUR_TO_JULES
|
_peak_load * _consumption_fix_flow * _working_hours_value * cte.WATTS_HOUR_TO_JULES
|
||||||
)
|
)
|
||||||
|
|
||||||
return self._distribution_systems_electrical_consumption
|
return self._distribution_systems_electrical_consumption
|
||||||
|
|
Loading…
Reference in New Issue
Block a user