summaryrefslogtreecommitdiff
path: root/gerber/statements.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2014-09-30 23:42:02 -0400
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2014-09-30 23:42:02 -0400
commitf8449ad2b60b8a715d0867325e257a8297193b49 (patch)
treec7cf4bed6de5c6200f9aaf937167ee71d1c9ce58 /gerber/statements.py
parent88fb7f23110d2270c5c7f8a7b90cae32295da78e (diff)
downloadgerbonara-f8449ad2b60b8a715d0867325e257a8297193b49.tar.gz
gerbonara-f8449ad2b60b8a715d0867325e257a8297193b49.tar.bz2
gerbonara-f8449ad2b60b8a715d0867325e257a8297193b49.zip
tests update
Diffstat (limited to 'gerber/statements.py')
-rw-r--r--gerber/statements.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/gerber/statements.py b/gerber/statements.py
index 418a852..47dbd69 100644
--- a/gerber/statements.py
+++ b/gerber/statements.py
@@ -48,11 +48,6 @@ class FSParamStmt(ParamStmt):
notation = 'absolute' if stmt_dict.get('notation') == 'A' else 'incremental'
x = map(int, stmt_dict.get('x').strip())
format = (x[0], x[1])
- if notation == 'incremental':
- print('This file uses incremental notation. To quote the gerber \
- file specification:\nIncremental notation is a source of \
- endless confusion. Always use absolute notation.\n\nYou \
- have been warned')
return cls(param, zeros, notation, format)
def __init__(self, param, zero_suppression='leading',
@@ -172,7 +167,7 @@ class IPParamStmt(ParamStmt):
self.ip = ip
def to_gerber(self):
- ip = 'POS' if self.ip == 'positive' else 'negative'
+ ip = 'POS' if self.ip == 'positive' else 'NEG'
return '%IP{0}*%'.format(ip)
def __str__(self):