LGTM: various fixes for using string operator instead of numeric
This commit is contained in:
@@ -422,7 +422,7 @@ def Execute(op,obj):
|
||||
|
||||
start = time.time()
|
||||
|
||||
if inputStateChanged or adaptiveResults == None:
|
||||
if inputStateChanged or adaptiveResults is None:
|
||||
a2d = area.Adaptive2d()
|
||||
a2d.stepOverFactor = 0.01*obj.StepOver
|
||||
a2d.toolDiameter = float(op.tool.Diameter)
|
||||
|
||||
@@ -486,7 +486,7 @@ class PathSimulation:
|
||||
def InvalidOperation(self):
|
||||
if len(self.activeOps) == 0:
|
||||
return True
|
||||
if (self.tool == None):
|
||||
if (self.tool is None):
|
||||
TSError("No tool assigned for the operation")
|
||||
return True
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user