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

Method parse

src/ifctester/ifctester/ids.py:144–156  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

142 return ids_dict
143
144 def parse(self, data):
145 for attribute in ["title", "copyright", "version", "description", "author", "date", "purpose", "milestone"]:
146 value = data["info"].get(attribute)
147 if value:
148 self.info[attribute] = value
149 xml_specs = data["specifications"]["specification"]
150 if not isinstance(xml_specs, list):
151 xml_specs = [xml_specs]
152 for xml_spec in xml_specs:
153 spec = Specification()
154 spec.parse(xml_spec)
155 self.specifications.append(spec)
156 return self
157
158 def to_string(self):
159 ns = {"": "http://standards.buildingsmart.org/IDS"}

Callers 13

__init__Method · 0.45
bcf_timeMethod · 0.45
openFunction · 0.45
from_stringFunction · 0.45
parse_clauseMethod · 0.45
ids_from_xml_stringFunction · 0.45
_idsToInstanceFunction · 0.45
auditIfcFunction · 0.45
handleAuditResultFunction · 0.45
parse_xmlMethod · 0.45
parse_xmlMethod · 0.45
parseArgumentsFunction · 0.45

Calls 4

parseMethod · 0.95
SpecificationClass · 0.70
getMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected