summaryrefslogtreecommitdiff
path: root/gerber/gerber_statements.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2019-02-04 09:28:51 -0500
committerGitHub <noreply@github.com>2019-02-04 09:28:51 -0500
commit256cd7ec6b1e50e9629b7da3a64248df9124011a (patch)
treefa8684dfc88166285495a4c52b948f45981328d0 /gerber/gerber_statements.py
parentf59d78b7fe92fffcc0afc56c5bec1dd211cc30c6 (diff)
parenta7a5981e0eb2b112a57c6ea1151eb2b88f798857 (diff)
downloadgerbonara-256cd7ec6b1e50e9629b7da3a64248df9124011a.tar.gz
gerbonara-256cd7ec6b1e50e9629b7da3a64248df9124011a.tar.bz2
gerbonara-256cd7ec6b1e50e9629b7da3a64248df9124011a.zip
Merge pull request #94 from jaseg/master
Make primitives with unset level polarity inherit from region
Diffstat (limited to 'gerber/gerber_statements.py')
-rw-r--r--gerber/gerber_statements.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/gerber/gerber_statements.py b/gerber/gerber_statements.py
index 339b02a..28f5e81 100644
--- a/gerber/gerber_statements.py
+++ b/gerber/gerber_statements.py
@@ -236,11 +236,6 @@ class LPParamStmt(ParamStmt):
lp = 'clear' if stmt_dict.get('lp') == 'C' else 'dark'
return cls(param, lp)
- @classmethod
- def from_region(cls, region):
- #todo what is the first param?
- return cls(None, region.level_polarity)
-
def __init__(self, param, lp):
""" Initialize LPParamStmt class