From 7f8e0d48ee202f1dfc97cb777de4dd9e80c49e12 Mon Sep 17 00:00:00 2001 From: guille Date: Thu, 2 Nov 2023 15:59:30 +0100 Subject: [PATCH] Correct missing reflectance values --- hub/exports/building_energy/idf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hub/exports/building_energy/idf.py b/hub/exports/building_energy/idf.py index 76e93c89..0270d866 100644 --- a/hub/exports/building_energy/idf.py +++ b/hub/exports/building_energy/idf.py @@ -12,6 +12,7 @@ from geomeppy import IDF import hub.helpers.constants as cte from hub.city_model_structure.attributes.schedule import Schedule from hub.city_model_structure.building_demand.thermal_zone import ThermalZone +from hub.helpers.configuration_helper import ConfigurationHelper class Idf: @@ -633,6 +634,8 @@ class Idf: self._city.lower_corner) shading.setcoords(coordinates) solar_reflectance = surface.short_wave_reflectance + if solar_reflectance is None: + solar_reflectance = ConfigurationHelper().short_wave_reflectance self._idf.newidfobject(self._SHADING_PROPERTY, Shading_Surface_Name=f'{surface.name}', Diffuse_Solar_Reflectance_of_Unglazed_Part_of_Shading_Surface=solar_reflectance,