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

Method _add_g

SLiCAP/schematic/symbol_library.py:309–315  ·  view source on GitHub ↗
(self, g, source: str, override: bool)

Source from the content-addressed store, hash-verified

307 # ── loading ───────────────────────────────────────────────────────────────
308
309 def _add_g(self, g, source: str, override: bool) -> None:
310 if not g.get("id"):
311 return
312 if not override and g.get("id") in self._symbols:
313 return
314 sym = Symbol(g, source)
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))

Callers 3

_load_bundleMethod · 0.95
add_bundleMethod · 0.95
add_user_libraryMethod · 0.95

Calls 1

SymbolClass · 0.85

Tested by

no test coverage detected