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

Method filter

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

Source from the content-addressed store, hash-verified

475 super().__init__(name, predefinedType, relation, cardinality, instructions)
476
477 def filter(
478 self, ifc_file: ifcopenshell.file, elements: Optional[list[ifcopenshell.entity_instance]]
479 ) -> list[ifcopenshell.entity_instance]:
480 if isinstance(elements, list):
481 return super().filter(ifc_file, elements)
482 return list(ifc_file) # Lazy
483
484 def asdict(self, clause_type: str) -> dict[str, Any]:
485 results = super().asdict(clause_type)

Callers

nothing calls this directly

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected