MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / setStepNum

Method setStepNum

SLiCAP/SLiCAPinstruction.py:993–1017  ·  view source on GitHub ↗

Defines the number of steps for 'lin' and 'log' parameter stepping. :param stepNumber: Number of steps for stepping methods 'lin' and 'log'. :type stepStop: int :Example: >>> # Create an instance of the instruction object >>> my_instr = instruction

(self, stepNum)

Source from the content-addressed store, hash-verified

991 return
992
993 def setStepNum(self, stepNum):
994 """
995 Defines the number of steps for 'lin' and 'log' parameter stepping.
996
997 :param stepNumber: Number of steps for stepping methods 'lin' and 'log'.
998 :type stepStop: int
999
1000 :Example:
1001
1002 >>> # Create an instance of the instruction object
1003 >>> my_instr = instruction()
1004 >>> # check a netlist file and use the circuit from this file for this
1005 >>> # instruction:
1006 >>> my_instr.setCircuit('my_circuit.cir')
1007 >>> # Define linear stepping:
1008 >>> my_instr.stepMethod = 'lin'
1009 >>> # Define the start value
1010 >>> my_instr.setStepStop('1M') # 1E6
1011 >>> my_instr.setStepStop(1e6) # 1E6
1012 >>> # Enable parameter stepping
1013 >>> my_instr.stepOn()
1014 """
1015 self.stepNum = stepNum
1016 self.checkStepNum()
1017 return
1018
1019 def checkStepNum(self):
1020 """

Callers

nothing calls this directly

Calls 1

checkStepNumMethod · 0.95

Tested by

no test coverage detected