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

Method setStepMethod

SLiCAP/SLiCAPinstruction.py:860–881  ·  view source on GitHub ↗

Defines the parameter stepping method. :param stepMethod: 'lin', 'log', 'list' or 'array'. :type stepMethod: str :Example: >>> # Create an instance of the instruction object >>> my_instr = instruction() >>> # check a netlist file and use th

(self, stepMethod)

Source from the content-addressed store, hash-verified

858 return
859
860 def setStepMethod(self, stepMethod):
861 """
862 Defines the parameter stepping method.
863
864 :param stepMethod: 'lin', 'log', 'list' or 'array'.
865 :type stepMethod: str
866
867 :Example:
868
869 >>> # Create an instance of the instruction object
870 >>> my_instr = instruction()
871 >>> # check a netlist file and use the circuit from this file for this
872 >>> # instruction:
873 >>> my_instr.setCircuit('my_circuit.cir')
874 >>> # Define 'linear' type stepping:
875 >>> my_instr.setStepMethod('lin')
876 >>> # Enable parameter stepping
877 >>> my_instr.stepOn()
878 """
879 self.stepMethod = stepMethod
880 self.checkStepMethod()
881 return
882
883 def checkStepMethod(self):
884 """

Callers

nothing calls this directly

Calls 1

checkStepMethodMethod · 0.95

Tested by

no test coverage detected