Checks if referenced elements exist in the circuit. :param circuitObject: Circuit object to be checked. :type circuitObject: SLiCAP circuit object
(circuitObject)
| 703 | _checkReferences(circuitObject.circuits[cir]) |
| 704 | |
| 705 | def _checkElementReferences(circuitObject): |
| 706 | """ |
| 707 | Checks if referenced elements exist in the circuit. |
| 708 | |
| 709 | :param circuitObject: Circuit object to be checked. |
| 710 | |
| 711 | :type circuitObject: SLiCAP circuit object |
| 712 | """ |
| 713 | elementNames = list(circuitObject.elements.keys()) |
| 714 | for el in elementNames: |
| 715 | for referencedElement in circuitObject.elements[el].refs: |
| 716 | if referencedElement not in elementNames: |
| 717 | circuitObject.errors += 1 |
| 718 | print("Error: unknown referenced element: " + referencedElement) |
| 719 | |
| 720 | def _checkModelDefs(circuitObject): |
| 721 | """ |