handle error in wwr

This commit is contained in:
Guille Gutierrez 2024-11-28 22:08:34 +01:00
parent 383bcc976f
commit 90353cde16
2 changed files with 5 additions and 2 deletions

View File

@ -727,7 +727,10 @@ class Idf:
else: else:
# idf only allows setting wwr for external walls # idf only allows setting wwr for external walls
wwr = 0 wwr = 0
self._idf.set_wwr(wwr) try:
self._idf.set_wwr(wwr, construction='window_construction_1')
except ValueError:
self._idf.set_wwr(0, construction='window_construction_1')
def _add_surfaces(self, building, zone_name): def _add_surfaces(self, building, zone_name):
for thermal_zone in building.thermal_zones_from_internal_zones: for thermal_zone in building.thermal_zones_from_internal_zones:

View File

@ -1,4 +1,4 @@
""" """
Hub version number Hub version number
""" """
__version__ = '0.2.0.15' __version__ = '0.2.0.16'