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

Method execute

src/ifc4d/ifc4d/pp2ifc.py:59–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 return r
58
59 def execute(self) -> None:
60 self.con = sqlite3.connect(self.pp)
61 self.cur = self.con.cursor()
62 self.parse_pp()
63 settings = {
64 "work_plan": self.work_plan,
65 "project": self.project,
66 "calendars": self.calendars,
67 "wbs": self.wbs,
68 "root_activities": self.root_activites,
69 "activities": self.activities,
70 "relationships": self.relationships,
71 "resources": self.resources,
72 }
73 start = time.time()
74 ifcCreator = ScheduleIfcGenerator(self.file, self.output, settings)
75 end = time.time()
76
77 ifcCreator.create_ifc()
78 end2 = time.time()
79 print("Parsing time is", end - start)
80 print("IFC Creation took", end2 - end)
81 print("Overall Time", end2 - start)
82
83 def parse_pp(self) -> None:
84 project = self.get_json("PROJECT_SUMMARY")[0]

Callers 3

_executeMethod · 0.95
get_jsonMethod · 0.45
get_json_with_filterMethod · 0.45

Calls 5

parse_ppMethod · 0.95
create_ifcMethod · 0.95
printFunction · 0.85
connectMethod · 0.80

Tested by

no test coverage detected