diff options
author | jaseg <git@jaseg.de> | 2022-01-30 15:58:20 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-01-30 15:58:20 +0100 |
commit | fd9e0d00792256aed5c30d13abf894df31a357c4 (patch) | |
tree | 4ba1fad9473e881bf21cec36ceca3d9958c10ba1 /gerbonara/gerber/aperture_macros/expression.py | |
parent | c8bf837a4b5dcc6242b7dac383f09e9390deca35 (diff) | |
download | gerbonara-fd9e0d00792256aed5c30d13abf894df31a357c4.tar.gz gerbonara-fd9e0d00792256aed5c30d13abf894df31a357c4.tar.bz2 gerbonara-fd9e0d00792256aed5c30d13abf894df31a357c4.zip |
Fix aperture macro outline primitive rendering
Diffstat (limited to 'gerbonara/gerber/aperture_macros/expression.py')
-rw-r--r-- | gerbonara/gerber/aperture_macros/expression.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gerbonara/gerber/aperture_macros/expression.py b/gerbonara/gerber/aperture_macros/expression.py index f25fdd2..0cf055a 100644 --- a/gerbonara/gerber/aperture_macros/expression.py +++ b/gerbonara/gerber/aperture_macros/expression.py @@ -21,6 +21,9 @@ class Expression: def __str__(self): return f'<{self.to_gerber()}>' + def __repr__(self): + return f'<E {self.to_gerber()}>' + def converted(self, unit): return self @@ -76,6 +79,9 @@ class UnitExpression(Expression): def __str__(self): return f'<{self._expr.to_gerber()} {self.unit}>' + def __repr__(self): + return f'<UE {self._expr.to_gerber()} {self.unit}>' + def converted(self, unit): if self.unit is None or unit is None or self.unit == unit: return self._expr |