mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
test_getting_elements_by_profile: fix test
This commit is contained in:
@@ -958,7 +958,7 @@ def get_elements_by_profile(profile: ifcopenshell.entity_instance) -> set[ifcope
|
||||
:return: The elements using the profile.
|
||||
"""
|
||||
ifc_file = profile.file
|
||||
queue = list(ifc_file.get_inverse(profile))
|
||||
queue = set(ifc_file.get_inverse(profile))
|
||||
processed: set[ifcopenshell.entity_instance] = set()
|
||||
representations: set[ifcopenshell.entity_instance] = set()
|
||||
while queue:
|
||||
|
||||
Reference in New Issue
Block a user