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

Function init

src/ifctester/webapp/src/modules/wasm/worker/ids.ts:17–36  ·  view source on GitHub ↗
(pdide: any)

Source from the content-addressed store, hash-verified

15let PartOf: any;
16
17export async function init(pdide: any) {
18 pyodide = pdide;
19
20 await pyodide.loadPackagesFromImports(`
21 import ifctester.ids
22 import ifctester.facet
23 `);
24
25 // Import the core IDS classes
26 Ids = pyodide.pyimport("ifctester.ids").Ids;
27 Specification = pyodide.pyimport("ifctester.ids").Specification;
28
29 // Import facet classes
30 Entity = pyodide.pyimport("ifctester.facet").Entity;
31 Attribute = pyodide.pyimport("ifctester.facet").Attribute;
32 Property = pyodide.pyimport("ifctester.facet").Property;
33 Material = pyodide.pyimport("ifctester.facet").Material;
34 Classification = pyodide.pyimport("ifctester.facet").Classification;
35 PartOf = pyodide.pyimport("ifctester.facet").PartOf;
36}
37
38function _idsToInstance(idsObj: Record<string, unknown>) {
39 const ids_raw = Ids();

Callers 2

taxonomy.hFile · 0.50
matrix4Function · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected