Checks if the loop gain reference has been defined and if it exists in the circuit. Called by **instruction.check()** and by **instruction.setLGref( )**.
(self)
| 1392 | return |
| 1393 | |
| 1394 | def checkLGref(self): |
| 1395 | """ |
| 1396 | Checks if the loop gain reference has been defined and if it exists in |
| 1397 | the circuit. |
| 1398 | |
| 1399 | Called by **instruction.check()** and by **instruction.setLGref(<lgRef>)**. |
| 1400 | """ |
| 1401 | if self.lgRef == [None, None]: |
| 1402 | self.errors += 1 |
| 1403 | print("Error: missing loop gain reference definition.") |
| 1404 | for lgRef in self.lgRef: |
| 1405 | if lgRef != None and lgRef not in self.circuit.controlled: |
| 1406 | self.errors += 1 |
| 1407 | print("Error: unkown loop gain reference: '{0}'.".format(self.lgRef)) |
| 1408 | return |
| 1409 | |
| 1410 | def delPar(self, parName): |
| 1411 | """ |