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

Function _addGlobalParam

SLiCAP/SLiCAPyacc.py:1267–1278  ·  view source on GitHub ↗
(par, circuitObject)

Source from the content-addressed store, hash-verified

1265 return circuitObject
1266
1267def _addGlobalParam(par, circuitObject):
1268 if str(par) in _SLiCAPPARAMS.keys():
1269 circuitObject.parDefs[par] = _SLiCAPPARAMS[str(par)]
1270 newParams = _SLiCAPPARAMS[str(par)].atoms(sp.Symbol)
1271 for newParam in newParams:
1272 # Parameters in the expression of a global parameter also have a
1273 # global definition
1274 # circuitObject.parDefs[newParam] = _SLiCAPPARAMS[str(newParam)]
1275 circuitObject = _addGlobalParam(newParam, circuitObject)
1276 elif par == ini.laplace or par == ini.frequency:
1277 circuitObject.params.remove(par)
1278 return circuitObject
1279
1280def _checkCircuit(fileName):
1281 """

Callers 1

_updateCirDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected