MCPcopy Create free account
hub / github.com/SLiCAP/SLiCAP_python / _addModel

Function _addModel

SLiCAP/SLiCAPyacc.py:341–349  ·  view source on GitHub ↗
(name, cirType, model)

Source from the content-addressed store, hash-verified

339 _CIRCUITS[name].elements[el.refDes] = el
340
341def _addModel(name, cirType, model):
342 global _CIRCUITS, _USERCIRCUITS, _SLiCAPCIRCUITS
343 if model != None:
344 if cirType == 'system':
345 _SLiCAPCIRCUITS[name].modelDefs[model.name] = model
346 elif cirType == 'user':
347 _USERCIRCUITS[name].modelDefs[model.name] = model
348 elif cirType == 'main':
349 _CIRCUITS[name].modelDefs[model.name] = model
350
351def _addParDef(name, cirType, parDefs):
352 global _CIRCUITS, _USERCIRCUITS, _SLiCAPCIRCUITS

Callers 1

_parseCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected