summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/aperture_macros/expression.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerbonara/gerber/aperture_macros/expression.py')
-rw-r--r--gerbonara/gerber/aperture_macros/expression.py6
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