From f56c8ce3d3f830955b0f7314547d9b2b5e969f5f Mon Sep 17 00:00:00 2001 From: Taoning Wang Date: Thu, 19 Oct 2023 15:18:19 -0700 Subject: [PATCH] fix ep2rad missing window matrix_file --- frads/ep2rad.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frads/ep2rad.py b/frads/ep2rad.py index 28cf75b..9a0d42c 100755 --- a/frads/ep2rad.py +++ b/frads/ep2rad.py @@ -671,7 +671,7 @@ def _process_surface( Tuple[List[bytes], Dict[str, Dict[str, bytes]], List[Polygon]]: A tuple of scene, windows, and window polygons. """ scene: List[bytes] = [] - windows: Dict[str, Dict[str, bytes]] = {} + windows: Dict[str, dict] = {} window_polygons: List[Polygon] = [] opaque_surface_name = surface_name.replace(" ", "_") if not check_outward(surface_polygon, zone_center): @@ -680,7 +680,9 @@ def _process_surface( fenestration_polygon, window = self._process_fenestration(fname, fene) window_polygons.append(fenestration_polygon) surface_polygon -= fenestration_polygon - windows[fname] = {"bytes": window.bytes} + windows[fname] = { "bytes": window.bytes} + if fene.construction_name in self.matrices: + windows[fname]["matrix_file"] = fene.construction_name # polygon to primitive construction = self.constructions[surface_construction_name] inner_material_name = construction.layers[-1].replace(" ", "_")