summaryrefslogtreecommitdiff
path: root/gerber/excellon_statements.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2016-01-21 03:57:44 -0500
committerGarret Fick <garret@ficksworkshop.com>2016-08-06 09:40:40 +0800
commit8cd842a41a55ab3d8f558a2e3e198beba7da58a1 (patch)
tree895d818072e043ac5275ed6cdc1d724ea5cd489a /gerber/excellon_statements.py
parent965d3ce23b92f8aff1063debd6d3364de15791fe (diff)
downloadgerbonara-8cd842a41a55ab3d8f558a2e3e198beba7da58a1.tar.gz
gerbonara-8cd842a41a55ab3d8f558a2e3e198beba7da58a1.tar.bz2
gerbonara-8cd842a41a55ab3d8f558a2e3e198beba7da58a1.zip
Manually mere rendering changes
Diffstat (limited to 'gerber/excellon_statements.py')
-rw-r--r--gerber/excellon_statements.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gerber/excellon_statements.py b/gerber/excellon_statements.py
index 7153c82..ac9c528 100644
--- a/gerber/excellon_statements.py
+++ b/gerber/excellon_statements.py
@@ -56,6 +56,7 @@ class ExcellonStatement(object):
def to_excellon(self, settings=None):
raise NotImplementedError('to_excellon must be implemented in a '
'subclass')
+
def to_inch(self):
self.units = 'inch'
@@ -68,6 +69,7 @@ class ExcellonStatement(object):
def __eq__(self, other):
return self.__dict__ == other.__dict__
+
class ExcellonTool(ExcellonStatement):
""" Excellon Tool class
@@ -239,7 +241,6 @@ class ExcellonTool(ExcellonStatement):
if self.diameter is not None:
self.diameter = inch(self.diameter)
-
def to_metric(self):
if self.settings.units != 'metric':
self.settings.units = 'metric'
@@ -648,6 +649,7 @@ class EndOfProgramStmt(ExcellonStatement):
if self.y is not None:
self.y += y_offset
+
class UnitStmt(ExcellonStatement):
@classmethod
@@ -689,6 +691,7 @@ class UnitStmt(ExcellonStatement):
def to_metric(self):
self.units = 'metric'
+
class IncrementalModeStmt(ExcellonStatement):
@classmethod
@@ -784,6 +787,7 @@ class MeasuringModeStmt(ExcellonStatement):
def to_metric(self):
self.units = 'metric'
+
class RouteModeStmt(ExcellonStatement):
def __init__(self, **kwargs):