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

Method parse_relationship_xml

src/ifc4d/ifc4d/msp2ifc.py:62–72  ·  view source on GitHub ↗
(self, task)

Source from the content-addressed store, hash-verified

60 # self.parse_resources_xml(project)
61
62 def parse_relationship_xml(self, task):
63 relationships = {}
64 id = 0
65 if task.findall("pr:PredecessorLink", self.ns):
66 for relationship in task.findall("pr:PredecessorLink", self.ns):
67 relationships[id] = {
68 "PredecessorTask": relationship.find("pr:PredecessorUID", self.ns).text,
69 "Type": relationship.find("pr:Type", self.ns).text,
70 }
71 id += 1
72 return relationships
73
74 def parse_task_xml(self, project):
75 if self.project["MinutesPerDay"]:

Callers 1

parse_task_xmlMethod · 0.95

Calls 1

findMethod · 0.45

Tested by

no test coverage detected