mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
black format
This commit is contained in:
@@ -289,7 +289,7 @@ class SelectDecomposedElements(bpy.types.Operator, tool.Ifc.Operator):
|
||||
ifc_class=ifc_class,
|
||||
relating_type=relating_type,
|
||||
is_untyped=is_untyped,
|
||||
element_filter = element_filter
|
||||
element_filter=element_filter,
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -257,6 +257,7 @@ class Spatial(bonsai.core.tool.Spatial):
|
||||
keyword: str | None,
|
||||
) -> filter[ifcopenshell.entity_instance]:
|
||||
keyword = keyword.lower() if keyword else keyword
|
||||
|
||||
def filter_element(element):
|
||||
if ifc_class:
|
||||
if not element.is_a(ifc_class):
|
||||
@@ -273,6 +274,7 @@ class Spatial(bonsai.core.tool.Spatial):
|
||||
if keyword not in f"{element.is_a()} {type_name}".lower():
|
||||
return False
|
||||
return True
|
||||
|
||||
return filter(filter_element, elements)
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user