From b2453b0d27f7093b02129d0c609495423a3bbbd7 Mon Sep 17 00:00:00 2001 From: guille Date: Tue, 29 Mar 2022 07:27:30 -0400 Subject: [PATCH] Add missing property decorator for getter --- city_model_structure/building_demand/usage_zone.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/city_model_structure/building_demand/usage_zone.py b/city_model_structure/building_demand/usage_zone.py index f8d77890..c2f8e9da 100644 --- a/city_model_structure/building_demand/usage_zone.py +++ b/city_model_structure/building_demand/usage_zone.py @@ -209,7 +209,8 @@ class UsageZone: """ self._appliances = value - def get_internal_gains(self) -> [InternalGains]: + @property + def internal_gains(self) -> [InternalGains]: """ Calculates and returns the list of all internal gains defined :return: InternalGains