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

Method filter

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

Source from the content-addressed store, hash-verified

937 super().__init__(value, uri, cardinality, instructions)
938
939 def filter(
940 self, ifc_file: ifcopenshell.file, elements: Optional[list[ifcopenshell.entity_instance]]
941 ) -> list[ifcopenshell.entity_instance]:
942 if isinstance(elements, list):
943 return super().filter(ifc_file, elements)
944 return ifc_file.by_type("IfcObjectDefinition")
945
946 def __call__(self, inst: ifcopenshell.entity_instance, logger: Optional[Logger] = None) -> MaterialResult:
947 material = ifcopenshell.util.element.get_material(inst, should_skip_usage=True)

Callers

nothing calls this directly

Calls 2

filterMethod · 0.45
by_typeMethod · 0.45

Tested by

no test coverage detected