MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / _load_bundle

Method _load_bundle

SLiCAP/schematic/symbol_library.py:317–324  ·  view source on GitHub ↗
(self, path: Path)

Source from the content-addressed store, hash-verified

315 self._symbols[sym.name] = sym
316
317 def _load_bundle(self, path: Path) -> None:
318 parser = ET.XMLParser(target=ET.TreeBuilder(insert_comments=True))
319 root = ET.parse(path, parser).getroot()
320 defs = root.find(f"{{{SVG_NS}}}defs")
321 if defs is None:
322 return
323 for g in defs.findall(f"{{{SVG_NS}}}g"):
324 self._add_g(g, path.name, override=False)
325
326 def add_bundle(self, path) -> list[str]:
327 """Overlay a frozen <name>.symbols bundle: its symbols OVERRIDE the

Callers 1

__init__Method · 0.95

Calls 2

_add_gMethod · 0.95
findMethod · 0.80

Tested by

no test coverage detected