(name, cirType, detector)
| 372 | _CIRCUITS[name].source = source |
| 373 | |
| 374 | def _addDetector(name, cirType, detector): |
| 375 | global _CIRCUITS, _USERCIRCUITS, _SLiCAPCIRCUITS |
| 376 | if detector != None: |
| 377 | if cirType == 'system': |
| 378 | _SLiCAPCIRCUITS[name].detector = detector |
| 379 | elif cirType == 'user': |
| 380 | _USERCIRCUITS[name].detector = detector |
| 381 | elif cirType == 'main': |
| 382 | _CIRCUITS[name].detector = detector |
| 383 | |
| 384 | def _addLGref(name, cirType, lgRef): |
| 385 | global _CIRCUITS, _USERCIRCUITS, _SLiCAPCIRCUITS |