summaryrefslogtreecommitdiff
path: root/gerber/rs274x.py
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2014-10-26 22:27:12 -0200
committerPaulo Henrique Silva <ph.silva@gmail.com>2014-10-26 22:27:12 -0200
commit171876bca01d5c92afd3fa29f2c62c5d50f65511 (patch)
tree02669a9b24cc94c99d2fb667b472baf93d9acc82 /gerber/rs274x.py
parent3ffa9238c401cf0a872e1abae872a356d5f15f95 (diff)
downloadgerbonara-171876bca01d5c92afd3fa29f2c62c5d50f65511.tar.gz
gerbonara-171876bca01d5c92afd3fa29f2c62c5d50f65511.tar.bz2
gerbonara-171876bca01d5c92afd3fa29f2c62c5d50f65511.zip
style change
Diffstat (limited to 'gerber/rs274x.py')
-rw-r--r--gerber/rs274x.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gerber/rs274x.py b/gerber/rs274x.py
index c01f027..f7be44d 100644
--- a/gerber/rs274x.py
+++ b/gerber/rs274x.py
@@ -386,12 +386,13 @@ class GerberParser(object):
def _evaluate_coord(self, stmt):
x = self.x if stmt.x is None else stmt.x
y = self.y if stmt.y is None else stmt.y
+
if stmt.function in ("G01", "G1"):
self.interpolation = 'linear'
elif stmt.function in ('G02', 'G2', 'G03', 'G3'):
self.interpolation = 'arc'
- self.direction = ('clockwise' if stmt.function in ('G02', 'G2')
- else 'counterclockwise')
+ self.direction = ('clockwise' if stmt.function in ('G02', 'G2') else 'counterclockwise')
+
if stmt.op == "D01":
if self.region_mode == 'on':
if self.current_region is None: