summaryrefslogtreecommitdiff
path: root/gerber/render
diff options
context:
space:
mode:
authorGarret Fick <garret@ficksworkshop.com>2016-04-05 22:40:12 +0800
committerGarret Fick <garret@ficksworkshop.com>2016-04-05 22:40:12 +0800
commit2eac1e427ca3264cb6dc36e0712020c1ca73fa9c (patch)
treed12de1805441100fb7c5dbe97aed3bc051a60713 /gerber/render
parentad29fac87358a43f50357580e705fc389f02c1ad (diff)
downloadgerbonara-2eac1e427ca3264cb6dc36e0712020c1ca73fa9c.tar.gz
gerbonara-2eac1e427ca3264cb6dc36e0712020c1ca73fa9c.tar.bz2
gerbonara-2eac1e427ca3264cb6dc36e0712020c1ca73fa9c.zip
Fix converting values for excellon files. Give error for incremental mode
Diffstat (limited to 'gerber/render')
-rw-r--r--gerber/render/excellon_backend.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/gerber/render/excellon_backend.py b/gerber/render/excellon_backend.py
index b2c213f..c477036 100644
--- a/gerber/render/excellon_backend.py
+++ b/gerber/render/excellon_backend.py
@@ -36,6 +36,11 @@ class ExcellonContext(GerberContext):
self.header.append(UnitStmt.from_settings(self.settings))
+ if self.settings.notation == 'incremental':
+ raise NotImplementedError('Incremental mode is not implemented')
+ else:
+ self.body.append(AbsoluteModeStmt())
+
def _start_comments(self):
# Write the digits used - this isn't valid Excellon statement, so we write as a comment