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

Function _addParDef

SLiCAP/SLiCAPyacc.py:351–362  ·  view source on GitHub ↗
(name, cirType, parDefs)

Source from the content-addressed store, hash-verified

349 _CIRCUITS[name].modelDefs[model.name] = model
350
351def _addParDef(name, cirType, parDefs):
352 global _CIRCUITS, _USERCIRCUITS, _SLiCAPCIRCUITS
353 if parDefs != None:
354 if cirType == 'system':
355 for key in parDefs.keys():
356 _SLiCAPCIRCUITS[name].parDefs[key] = parDefs[key]
357 elif cirType == 'user':
358 for key in parDefs.keys():
359 _USERCIRCUITS[name].parDefs[key] = parDefs[key]
360 elif cirType == 'main':
361 for key in parDefs.keys():
362 _CIRCUITS[name].parDefs[key] = parDefs[key]
363
364def _addSource(name, cirType, source):
365 global _CIRCUITS, _USERCIRCUITS, _SLiCAPCIRCUITS

Callers 1

_parseCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected