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

Method filter

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

Source from the content-addressed store, hash-verified

410 super().__init__(value, system, uri, cardinality, instructions)
411
412 def filter(
413 self, ifc_file: ifcopenshell.file, elements: Optional[list[ifcopenshell.entity_instance]]
414 ) -> list[ifcopenshell.entity_instance]:
415 if isinstance(elements, list):
416 return super().filter(ifc_file, elements)
417 return ifc_file.by_type("IfcObjectDefinition")
418
419 def __call__(self, inst: ifcopenshell.entity_instance, logger: Optional[Logger] = None) -> ClassificationResult:
420 leaf_references = ifcopenshell.util.classification.get_references(inst)

Callers

nothing calls this directly

Calls 2

filterMethod · 0.45
by_typeMethod · 0.45

Tested by

no test coverage detected