diff options
author | Garret Fick <garret@ficksworkshop.com> | 2016-04-05 22:40:12 +0800 |
---|---|---|
committer | Garret Fick <garret@ficksworkshop.com> | 2016-04-05 22:40:12 +0800 |
commit | 2eac1e427ca3264cb6dc36e0712020c1ca73fa9c (patch) | |
tree | d12de1805441100fb7c5dbe97aed3bc051a60713 /gerber/render | |
parent | ad29fac87358a43f50357580e705fc389f02c1ad (diff) | |
download | gerbonara-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.py | 5 |
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 |