diff options
author | Garret Fick <garret@ficksworkshop.com> | 2016-03-27 14:24:11 +0800 |
---|---|---|
committer | Garret Fick <garret@ficksworkshop.com> | 2016-03-27 14:24:11 +0800 |
commit | 288f49955ecc1a811752aa4b1e713f9954e3033b (patch) | |
tree | 5617650d75b731bb4ecf79e14bfcd777a452cd73 /gerber/excellon_statements.py | |
parent | 25515b8ec7016698431b74e5beac8ff2d6691f0b (diff) | |
download | gerbonara-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.py | 8 |
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): |