fix/multi-useage #77

Merged
g_gutierrez merged 7 commits from fix/multi-useage into main 2024-11-29 00:23:59 -05:00
Showing only changes of commit da819ad9d0 - Show all commits

View File

@ -62,6 +62,10 @@ class ThermalZone:
self._domestic_hot_water = None
self._usage_name = None
self._usages = usages
self._usage_from_parent = False
if usages is None:
self._usage_from_parent = True
@property
def parent_internal_zone(self) -> InternalZone:
@ -74,11 +78,10 @@ class ThermalZone:
@property
def usages(self):
"""
Get the thermal zone usages including percentage with the format [percentage]-usage_[percentage]-usage...
Eg: 70-office_30-residential
Get the thermal zone usages
:return: str
"""
if self._usages is not None:
if self._usage_from_parent:
self._usages = copy.deepcopy(self._parent_internal_zone.usages)
return self._usages