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

Method checkStepStart

SLiCAP/SLiCAPinstruction.py:931–947  ·  view source on GitHub ↗

Checks if the start value for parameter stepping is defined correctly. Called by **instruction.checkStep()** and by **instruction.stepStart( )**.

(self)

Source from the content-addressed store, hash-verified

929 return
930
931 def checkStepStart(self):
932 """
933 Checks if the start value for parameter stepping is defined correctly.
934
935 Called by **instruction.checkStep()** and by **instruction.stepStart(<stepStart>)**.
936 """
937 if self.stepStart == None:
938 self.errors += 1
939 print("Error: missing stepStart value.")
940 else:
941 value = float(_checkNumber(self.stepStart))
942 if value == None:
943 self.errors += 1
944 print("Error: cannot determine numeric value of stepStart.")
945 else:
946 self.stepStart = value
947 return
948
949 def setStepStop(self, stepStop):
950 """

Callers 2

setStepStartMethod · 0.95
checkStepMethod · 0.95

Calls 1

_checkNumberFunction · 0.90

Tested by

no test coverage detected