Fix converting values for excellon files. Give error for incremental mode

This commit is contained in:
Garret Fick 2016-04-05 22:40:12 +08:00
parent ad29fac873
commit 2eac1e427c
2 changed files with 13 additions and 16 deletions

View file

@ -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