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

Method checkStepStop

SLiCAP/SLiCAPinstruction.py:975–991  ·  view source on GitHub ↗

Checks if the end value for parameter steping is defined correctly. Called by **instruction.checkStep()** and by **instruction.stepStop( )**.

(self)

Source from the content-addressed store, hash-verified

973 return
974
975 def checkStepStop(self):
976 """
977 Checks if the end value for parameter steping is defined correctly.
978
979 Called by **instruction.checkStep()** and by **instruction.stepStop(<stepStop>)**.
980 """
981 if self.stepStop == None:
982 self.errors += 1
983 print("Error: missing stepStop value.")
984 else:
985 value = float(_checkNumber(self.stepStop))
986 if value == None:
987 self.errors += 1
988 print("Error: cannot determine numeric value of stepStop.")
989 else:
990 self.stepStop = value
991 return
992
993 def setStepNum(self, stepNum):
994 """

Callers 2

setStepStopMethod · 0.95
checkStepMethod · 0.95

Calls 1

_checkNumberFunction · 0.90

Tested by

no test coverage detected