Skip to content

Commit

Permalink
fix(story): Loosen the check for rooms to be a part of the same Story
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey committed Oct 18, 2024
1 parent 01eeecc commit 03bd6c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dragonfly/story.py
Original file line number Diff line number Diff line change
Expand Up @@ -1699,8 +1699,8 @@ def room_2d_story_geometry_valid(room_2ds):
if len(room_2ds) == 1:
return True
flr_hts = sorted([rm.floor_height for rm in room_2ds])
min_flr_to_ceil = min([rm.floor_to_ceiling_height for rm in room_2ds])
return True if flr_hts[-1] - flr_hts[0] < min_flr_to_ceil else False
avg_ftc = sum([rm.floor_to_ceiling_height for rm in room_2ds]) / len(room_2ds)
return True if flr_hts[-1] - flr_hts[0] < avg_ftc else False

def _room_roofs(self, room_2d, tolerance):
"""Get a RoofSpecification to be used for a specific Room2D in the Story.
Expand Down

0 comments on commit 03bd6c1

Please sign in to comment.