From 3dd928574ae9dc283c113dcbb62a02796d25499e Mon Sep 17 00:00:00 2001 From: guille Date: Thu, 2 Nov 2023 07:20:55 +0100 Subject: [PATCH] bug correction --- hub/city_model_structure/building_demand/surface.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hub/city_model_structure/building_demand/surface.py b/hub/city_model_structure/building_demand/surface.py index 9f85efb6..071a9009 100644 --- a/hub/city_model_structure/building_demand/surface.py +++ b/hub/city_model_structure/building_demand/surface.py @@ -18,6 +18,7 @@ from hub.city_model_structure.attributes.point import Point from hub.city_model_structure.greenery.vegetation import Vegetation from hub.city_model_structure.building_demand.thermal_boundary import ThermalBoundary import hub.helpers.constants as cte +from hub.helpers.configuration_helper import ConfigurationHelper class Surface: @@ -240,6 +241,8 @@ class Surface: The absorptance as an opaque surface, can be calculated as 1-short_wave_reflectance :return: float """ + if self._short_wave_reflectance is None: + return ConfigurationHelper.short_wave_reflectance return self._short_wave_reflectance @short_wave_reflectance.setter