MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / filter

Method filter

src/ifctester/ifctester/facet.py:116–121  ·  view source on GitHub ↗
(
        self, ifc_file: ifcopenshell.file, elements: Optional[list[ifcopenshell.entity_instance]]
    )

Source from the content-addressed store, hash-verified

114 return self
115
116 def filter(
117 self, ifc_file: ifcopenshell.file, elements: Optional[list[ifcopenshell.entity_instance]]
118 ) -> list[ifcopenshell.entity_instance]:
119 if not elements:
120 return []
121 return [e for e in elements if self(e)]
122
123 def to_string(
124 self,

Callers 11

validateMethod · 0.45
filterMethod · 0.45
filterMethod · 0.45
filterMethod · 0.45
filterMethod · 0.45
filterMethod · 0.45
filterMethod · 0.45
unloadIfcFunction · 0.45
getAuditReportsForIfcFunction · 0.45
clearIdsAuditReportsFunction · 0.45
stringifyRestrictionFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected