Skip to content

Commit

Permalink
fix(model): Ensure validation of room collisions succeeds for no rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey authored and Chris Mackey committed Oct 18, 2023
1 parent 29bf4d4 commit c914588
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions honeybee/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2174,6 +2174,8 @@ def check_room_volume_collisions(
tolerance = self.tolerance if tolerance is None else tolerance
detailed = False if raise_exception else detailed
# group the rooms by their floor heights to enable collision checking
if len(self.rooms) == 0:
return [] if detailed else ''
room_groups, _ = Room.group_by_floor_height(self.rooms, tolerance)
# loop trough the groups and detect collisions
msgs = []
Expand Down

0 comments on commit c914588

Please sign in to comment.