Remove extra import math

This commit is contained in:
Eyal Soha committed 2018-07-13 00:29:43 +03:00
1 parent 13ab34a5c8
commit c2bb234c20
2 files changed
+3 -2

No files matched your search

+3
View File
@@ -71,3 +71,6 @@ def gcode_command(path, speedx, speedy, speedz, offset, maxt, throttle, throttle
click.echo("DONE:{}s".format(time.time() - start_time))
click.echo("RESULTS:")
click.echo(yaml.safe_dump(interpreter.get_result(), default_flow_style=False, indent=" ", allow_unicode=True))
if __name__ == "__main__":
gcode_command()
-2
View File
@@ -498,7 +498,6 @@ def getCodeInt(line, code):
def getCodeFloat(line, code):
import math
n = line.find(code) + 1
if n < 1:
return None
@@ -511,4 +510,3 @@ def getCodeFloat(line, code):
return val if not (math.isnan(val) or math.isinf(val)) else None
except:
return None