Remove extra import math
This commit is contained in:
1 parent
13ab34a5c8
commit
c2bb234c20
2 files changed
+3
-2
No files matched your search
@@ -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()
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user