MCPcopy Create free account
hub / github.com/SLiCAP/SLiCAP_python / checkLGref

Method checkLGref

SLiCAP/SLiCAPinstruction.py:1394–1408  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 2

setLGrefMethod · 0.95
checkMethod · 0.95

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected