From c28e1ba176d4f30efc56f6405d4b71d474a11efd Mon Sep 17 00:00:00 2001 From: guille Date: Mon, 9 May 2022 22:42:51 -0400 Subject: [PATCH] Correct rhino read --- city_model_structure/building_demand/thermal_boundary.py | 2 +- city_model_structure/building_demand/thermal_zone.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/city_model_structure/building_demand/thermal_boundary.py b/city_model_structure/building_demand/thermal_boundary.py index 836795c6..5afb36a9 100644 --- a/city_model_structure/building_demand/thermal_boundary.py +++ b/city_model_structure/building_demand/thermal_boundary.py @@ -172,7 +172,7 @@ class ThermalBoundary: def thermal_openings(self) -> Union[None, List[ThermalOpening]]: """ Get thermal boundary thermal openings - :return: [ThermalOpening] + :return: None or [ThermalOpening] """ if self._thermal_openings is None: if self.window_ratio is not None: diff --git a/city_model_structure/building_demand/thermal_zone.py b/city_model_structure/building_demand/thermal_zone.py index a9420840..36b6d9c3 100644 --- a/city_model_structure/building_demand/thermal_zone.py +++ b/city_model_structure/building_demand/thermal_zone.py @@ -70,7 +70,7 @@ class ThermalZone: return self._footprint_area @property - def thermal_boundaries(self) -> List[ThermalBoundary]: + def thermal_boundaries(self) -> [ThermalBoundary]: """ Get thermal boundaries bounding with the thermal zone :return: [ThermalBoundary] @@ -564,7 +564,7 @@ class ThermalZone: _internal_gain.convective_fraction = internal_gain_type.convective_fraction _internal_gain.schedules = internal_gain_type.schedules - def get_internal_gains(self) -> [InternalGain]: + def get_internal_gains(self) -> List[InternalGain]: """ Calculates and returns the list of all internal gains defined :return: [InternalGain]