| 349 | _CIRCUITS[name].modelDefs[model.name] = model |
| 350 | |
| 351 | def _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 | |
| 364 | def _addSource(name, cirType, source): |
| 365 | global _CIRCUITS, _USERCIRCUITS, _SLiCAPCIRCUITS |