summaryrefslogtreecommitdiff
path: root/gerber/excellon_statements.py
diff options
context:
space:
mode:
authorGarret Fick <garret@ficksworkshop.com>2016-03-27 14:24:11 +0800
committerGarret Fick <garret@ficksworkshop.com>2016-03-27 14:24:11 +0800
commit288f49955ecc1a811752aa4b1e713f9954e3033b (patch)
tree5617650d75b731bb4ecf79e14bfcd777a452cd73 /gerber/excellon_statements.py
parent25515b8ec7016698431b74e5beac8ff2d6691f0b (diff)
downloadgerbonara-288f49955ecc1a811752aa4b1e713f9954e3033b.tar.gz
gerbonara-288f49955ecc1a811752aa4b1e713f9954e3033b.tar.bz2
gerbonara-288f49955ecc1a811752aa4b1e713f9954e3033b.zip
Actually fix the rout rendering to be correct
Diffstat (limited to 'gerber/excellon_statements.py')
-rw-r--r--gerber/excellon_statements.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/gerber/excellon_statements.py b/gerber/excellon_statements.py
index a6a5a5e..c9367b4 100644
--- a/gerber/excellon_statements.py
+++ b/gerber/excellon_statements.py
@@ -367,8 +367,12 @@ class ZAxisInfeedRateStmt(ExcellonStatement):
class CoordinateStmt(ExcellonStatement):
@classmethod
- def from_point(cls, point):
- return cls(point[0], point[1])
+ def from_point(cls, point, mode=None):
+
+ stmt = cls(point[0], point[1])
+ if mode:
+ stmt.mode = mode
+ return stmt
@classmethod
def from_excellon(cls, line, settings, **kwargs):