From c9145884606cdc247c394e31c5701aad4e98c00c Mon Sep 17 00:00:00 2001 From: Chris Mackey Date: Wed, 18 Oct 2023 10:14:34 -0700 Subject: [PATCH] fix(model): Ensure validation of room collisions succeeds for no rooms --- honeybee/model.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/honeybee/model.py b/honeybee/model.py index 4f6bc829..8f80e95e 100644 --- a/honeybee/model.py +++ b/honeybee/model.py @@ -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 = []