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

Method setStepStart

SLiCAP/SLiCAPinstruction.py:904–929  ·  view source on GitHub ↗

Start value for parameter stepping methods 'lin' and 'log'. :param stepStart: Start value for parameter stepping methods 'lin' and 'log'. :type stepStart: str, int, float :Example: >>> # Create an instance of the instruction object >>> my_instr = i

(self, stepStart)

Source from the content-addressed store, hash-verified

902 return
903
904 def setStepStart(self, stepStart):
905 """
906 Start value for parameter stepping methods 'lin' and 'log'.
907
908 :param stepStart: Start value for parameter stepping methods 'lin' and 'log'.
909 :type stepStart: str, int, float
910
911 :Example:
912
913 >>> # Create an instance of the instruction object
914 >>> my_instr = instruction()
915 >>> # check a netlist file and use the circuit from this file for this
916 >>> # instruction:
917 >>> my_instr.setCircuit('my_circuit.cir')
918 >>> # Define linear stepping:
919 >>> my_instr.stepMethod = 'lin'
920 >>> # Define the start value
921 >>> my_instr.setStepStart('1k') # 1E3
922 >>> my_instr.setStepStart(1000) # 1E3
923 >>> my_instr.setStepStart(1e3) # 1E3
924 >>> # Enable parameter stepping
925 >>> my_instr.stepOn()
926 """
927 self.stepStart = stepStart
928 self.checkStepStart()
929 return
930
931 def checkStepStart(self):
932 """

Callers

nothing calls this directly

Calls 1

checkStepStartMethod · 0.95

Tested by

no test coverage detected