mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +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.
|
:return: The elements using the profile.
|
||||||
"""
|
"""
|
||||||
ifc_file = profile.file
|
ifc_file = profile.file
|
||||||
queue = list(ifc_file.get_inverse(profile))
|
queue = set(ifc_file.get_inverse(profile))
|
||||||
processed: set[ifcopenshell.entity_instance] = set()
|
processed: set[ifcopenshell.entity_instance] = set()
|
||||||
representations: set[ifcopenshell.entity_instance] = set()
|
representations: set[ifcopenshell.entity_instance] = set()
|
||||||
while queue:
|
while queue:
|
||||||
|
|||||||
Reference in New Issue
Block a user