summaryrefslogtreecommitdiff
path: root/gerber/gerber_statements.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerber/gerber_statements.py')
-rw-r--r--gerber/gerber_statements.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/gerber/gerber_statements.py b/gerber/gerber_statements.py
index 2caced5..9072b58 100644
--- a/gerber/gerber_statements.py
+++ b/gerber/gerber_statements.py
@@ -284,9 +284,9 @@ class LPParamStmt(ParamStmt):
ParamStmt.__init__(self, param)
self.lp = lp
- def to_gerber(self, settings):
- lp = 'C' if self.lp == 'clear' else 'dark'
- return '%LP{0}*%'.format(self.lp)
+ def to_gerber(self):
+ lp = 'C' if self.lp == 'clear' else 'D'
+ return '%LP{0}*%'.format(lp)
def __str__(self):
return '<Level Polarity: %s>' % self.lp
@@ -593,6 +593,7 @@ class ApertureStmt(Statement):
class CommentStmt(Statement):
""" Comment Statment
"""
+
def __init__(self, comment):
Statement.__init__(self, "COMMENT")
self.comment = comment
@@ -616,6 +617,7 @@ class EofStmt(Statement):
def __str__(self):
return '<EOF Statement>'
+
class QuadrantModeStmt(Statement):
@classmethod
@@ -638,6 +640,7 @@ class QuadrantModeStmt(Statement):
def to_gerber(self):
return 'G74*' if self.mode == 'single-quadrant' else 'G75*'
+
class RegionModeStmt(Statement):
@classmethod
@@ -664,3 +667,6 @@ class UnknownStmt(Statement):
def __init__(self, line):
Statement.__init__(self, "UNKNOWN")
self.line = line
+
+ def to_gerber(self):
+ return self.line