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

Method get_schedules

src/ifc5d/ifc5d/ifc5Dspreadsheet.py:72–77  ·  view source on GitHub ↗
(
        file: ifcopenshell.file, filter_by_schedule: Optional[ifcopenshell.entity_instance] = None
    )

Source from the content-addressed store, hash-verified

70class IfcDataGetter:
71 @staticmethod
72 def get_schedules(
73 file: ifcopenshell.file, filter_by_schedule: Optional[ifcopenshell.entity_instance] = None
74 ) -> list[ifcopenshell.entity_instance]:
75 if filter_by_schedule:
76 return [filter_by_schedule]
77 return file.by_type("IfcCostSchedule")
78
79 @staticmethod
80 def canonicalise_time(time: Union[datetime.datetime, None]) -> str:

Callers 1

writeMethod · 0.80

Calls 1

by_typeMethod · 0.45

Tested by

no test coverage detected