summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/aperture_macros/parse.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-01-30 15:58:20 +0100
committerjaseg <git@jaseg.de>2022-01-30 15:58:20 +0100
commitfd9e0d00792256aed5c30d13abf894df31a357c4 (patch)
tree4ba1fad9473e881bf21cec36ceca3d9958c10ba1 /gerbonara/gerber/aperture_macros/parse.py
parentc8bf837a4b5dcc6242b7dac383f09e9390deca35 (diff)
downloadgerbonara-fd9e0d00792256aed5c30d13abf894df31a357c4.tar.gz
gerbonara-fd9e0d00792256aed5c30d13abf894df31a357c4.tar.bz2
gerbonara-fd9e0d00792256aed5c30d13abf894df31a357c4.zip
Fix aperture macro outline primitive rendering
Diffstat (limited to 'gerbonara/gerber/aperture_macros/parse.py')
-rw-r--r--gerbonara/gerber/aperture_macros/parse.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gerbonara/gerber/aperture_macros/parse.py b/gerbonara/gerber/aperture_macros/parse.py
index 3a6f6e1..0fa936f 100644
--- a/gerbonara/gerber/aperture_macros/parse.py
+++ b/gerbonara/gerber/aperture_macros/parse.py
@@ -91,7 +91,10 @@ class ApertureMacro:
self._name = name
def __str__(self):
- return f'<Aperture macro, variables {str(self.variables)}, primitives {self.primitives}>'
+ return f'<Aperture macro {self.name}, variables {str(self.variables)}, primitives {self.primitives}>'
+
+ def __repr__(self):
+ return str(self)
def __eq__(self, other):
return hasattr(other, 'to_gerber') and self.to_gerber() == other.to_gerber()