Mod: remove some superfluous Boolean checks (#7213)
* Mod: remove some superfluous Python Boolean checks
This commit is contained in:
@@ -174,7 +174,7 @@ class PathBoundary:
|
||||
lastExit = None
|
||||
for cmd in self.baseOp.Path.Commands[1:]:
|
||||
if cmd.Name in PathGeom.CmdMoveAll:
|
||||
if bogusX == True:
|
||||
if bogusX:
|
||||
bogusX = "X" not in cmd.Parameters
|
||||
if bogusY:
|
||||
bogusY = "Y" not in cmd.Parameters
|
||||
|
||||
@@ -666,9 +666,9 @@ def HEIDEN_Line(
|
||||
H_Line += " " + H_Line_Params[1][0]
|
||||
|
||||
# F parameter (check rapid o feed)
|
||||
if line_rapid == True:
|
||||
if line_rapid:
|
||||
H_Line_Params[1][1] = FEED_MAX_SPEED
|
||||
if MACHINE_USE_FMAX == True and line_rapid == True:
|
||||
if MACHINE_USE_FMAX and line_rapid:
|
||||
H_Line += " FMAX"
|
||||
else:
|
||||
if (
|
||||
@@ -837,9 +837,9 @@ def HEIDEN_Arc(
|
||||
H_ArcPoint += " " + H_Arc_Params[1][0]
|
||||
|
||||
# F parameter
|
||||
if arc_rapid == True:
|
||||
if arc_rapid:
|
||||
H_Arc_Params[1][1] = FEED_MAX_SPEED
|
||||
if MACHINE_USE_FMAX == True and arc_rapid == True:
|
||||
if MACHINE_USE_FMAX and arc_rapid:
|
||||
H_ArcPoint += " FMAX"
|
||||
else:
|
||||
if (
|
||||
|
||||
@@ -431,7 +431,7 @@ def export(objectslist, filename, argstring):
|
||||
|
||||
if not MODAL or command != lastcommand:
|
||||
outstring.append(mappedCommand)
|
||||
# if MODAL == True:
|
||||
# if MODAL:
|
||||
# #\better: append iff MODAL == False
|
||||
# if command == lastcommand:
|
||||
# outstring.pop(0)
|
||||
|
||||
Reference in New Issue
Block a user