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

Function _addElement

SLiCAP/SLiCAPyacc.py:332–339  ·  view source on GitHub ↗
(el, name, cirType)

Source from the content-addressed store, hash-verified

330 _CIRCUITS[name] = cir
331
332def _addElement(el, name, cirType):
333 global _CIRCUITS, _USERCIRCUITS, _SLiCAPCIRCUITS
334 if cirType == 'system':
335 _SLiCAPCIRCUITS[name].elements[el.refDes] = el
336 elif cirType == 'user':
337 _USERCIRCUITS[name].elements[el.refDes] = el
338 elif cirType == 'main':
339 _CIRCUITS[name].elements[el.refDes] = el
340
341def _addModel(name, cirType, model):
342 global _CIRCUITS, _USERCIRCUITS, _SLiCAPCIRCUITS

Callers 2

_parseElementFunction · 0.85
_parseSubcircuitElementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected