Skip to content

Commit

Permalink
fix ep2rad missing window matrix_file
Browse files Browse the repository at this point in the history
  • Loading branch information
Taoning Wang committed Oct 19, 2023
1 parent 6cd26eb commit f56c8ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frads/ep2rad.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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(" ", "_")
Expand Down

0 comments on commit f56c8ce

Please sign in to comment.