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

Function openIDS

src/ifctester/webapp/src/modules/wasm/worker/ids.ts:48–53  ·  view source on GitHub ↗
(ids_xml: string, validate = false)

Source from the content-addressed store, hash-verified

46}
47
48export function openIDS(ids_xml: string, validate = false): Record<string, unknown> {
49 const ids_from_xml_string = pyodide.pyimport("api").ids_from_xml_string;
50 const ids_raw = ids_from_xml_string(ids_xml, validate);
51
52 return ids_raw.asdict().toJs({dict_converter: Object.fromEntries});
53}
54
55export function validateIDS(idsObj: Record<string, unknown>): boolean {
56 const ids_raw = _idsToInstance(idsObj)

Callers

nothing calls this directly

Calls 2

ids_from_xml_stringFunction · 0.85
asdictMethod · 0.45

Tested by

no test coverage detected