diff options
author | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2014-10-26 17:59:57 -0400 |
---|---|---|
committer | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2014-10-26 17:59:57 -0400 |
commit | 4f076d7b769b0f488888d268a9a199b7545afdd7 (patch) | |
tree | 50e2788e5dfc63db909a3613fff6934a0e80b153 /gerber/gerber_statements.py | |
parent | 254f3e51845de5679f11934a807e8f0f7d1f5713 (diff) | |
download | gerbonara-4f076d7b769b0f488888d268a9a199b7545afdd7.tar.gz gerbonara-4f076d7b769b0f488888d268a9a199b7545afdd7.tar.bz2 gerbonara-4f076d7b769b0f488888d268a9a199b7545afdd7.zip |
Merge aperture fixses from upstream
Diffstat (limited to 'gerber/gerber_statements.py')
-rw-r--r-- | gerber/gerber_statements.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gerber/gerber_statements.py b/gerber/gerber_statements.py index 44eeee0..e392ec5 100644 --- a/gerber/gerber_statements.py +++ b/gerber/gerber_statements.py @@ -308,9 +308,6 @@ class ADParamStmt(ParamStmt): d = int(stmt_dict.get('d')) shape = stmt_dict.get('shape') modifiers = stmt_dict.get('modifiers') - if modifiers is not None: - modifiers = [[float(x) for x in m.split('X')] - for m in modifiers.split(',')] return cls(param, d, shape, modifiers) def __init__(self, param, d, shape, modifiers): @@ -339,7 +336,10 @@ class ADParamStmt(ParamStmt): ParamStmt.__init__(self, param) self.d = d self.shape = shape - self.modifiers = modifiers + if modifiers is not None: + self.modifiers = [[x for x in m.split("X")] for m in modifiers.split(",")] + else: + self.modifiers = [] def to_gerber(self, settings): return '%ADD{0}{1},{2}*%'.format(self.d, self.shape, |