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

Method _build_library

SLiCAP/schematic/window.py:558–566  ·  view source on GitHub ↗

(Re)build the active symbol library: system symbols, optionally overlaid by a schematic's frozen .symbols (which overrides system symbols).

(self, overlay_path=None)

Source from the content-addressed store, hash-verified

556 return lib
557
558 def _build_library(self, overlay_path=None):
559 """(Re)build the active symbol library: system symbols, optionally
560 overlaid by a schematic&#x27;s frozen <name>.symbols (which overrides system
561 symbols)."""
562 lib = self._make_library(overlay_path)
563 lib.inject_into_component_item()
564 self._library = lib
565 if hasattr(self, "_scene"):
566 self._scene._library = lib
567
568 def _on_new(self):
569 self._scene.reset()

Callers 4

__init__Method · 0.95
_on_newMethod · 0.95
_load_fileMethod · 0.95

Calls 2

_make_libraryMethod · 0.95

Tested by

no test coverage detected