diff options
author | Garret Fick <garret@ficksworkshop.com> | 2016-05-28 12:36:31 +0800 |
---|---|---|
committer | Garret Fick <garret@ficksworkshop.com> | 2016-05-28 12:36:31 +0800 |
commit | c9c1313d598d5afa8cb387a2cfcd4a4281086e01 (patch) | |
tree | dd8898023c6cae3e282df5fb6f7ed50a85f3d5cf /gerber/gerber_statements.py | |
parent | d1d112f2f152784ead18bfa25c70caf210020666 (diff) | |
download | gerbonara-c9c1313d598d5afa8cb387a2cfcd4a4281086e01.tar.gz gerbonara-c9c1313d598d5afa8cb387a2cfcd4a4281086e01.tar.bz2 gerbonara-c9c1313d598d5afa8cb387a2cfcd4a4281086e01.zip |
Fix units statement. Keep track of original macro statement in the AMGroup
Diffstat (limited to 'gerber/gerber_statements.py')
-rw-r--r-- | gerber/gerber_statements.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gerber/gerber_statements.py b/gerber/gerber_statements.py index 119df9d..b171a7f 100644 --- a/gerber/gerber_statements.py +++ b/gerber/gerber_statements.py @@ -176,7 +176,7 @@ class MOParamStmt(ParamStmt): @classmethod def from_units(cls, units): - return cls(None, 'inch') + return cls(None, units) @classmethod def from_dict(cls, stmt_dict): @@ -425,7 +425,7 @@ class AMParamStmt(ParamStmt): else: self.primitives.append(AMUnsupportPrimitive.from_gerber(primitive)) - return AMGroup(self.primitives, units=self.units) + return AMGroup(self.primitives, stmt=self, units=self.units) def to_inch(self): if self.units == 'metric': |