From f4598ac94639f0a507b8fd7168230f52c24342eb Mon Sep 17 00:00:00 2001 From: guille Date: Mon, 2 Dec 2024 20:13:56 +0100 Subject: [PATCH] bug fix --- hub/exports/building_energy/idf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hub/exports/building_energy/idf.py b/hub/exports/building_energy/idf.py index c3a26635..c6a26d1b 100644 --- a/hub/exports/building_energy/idf.py +++ b/hub/exports/building_energy/idf.py @@ -780,7 +780,10 @@ class Idf: for surface in building.surfaces: if surface.type == cte.WALL: wwr = surface.associated_thermal_boundaries[0].window_ratio - #self._idf.set_wwr(wwr, construction='window_construction_1') + try: + self._idf.set_wwr(wwr, construction='window_construction_1') + except ValueError: + self._idf.set_wwr(0, construction='window_construction_1') def _add_windows_by_vertices(self, boundary): raise NotImplementedError