From 3f9295b9d0c2142c46aa238836debdd472811899 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 6 Feb 2021 09:38:22 +0100 Subject: Fix support for comments in aperture definitions --- gerberex/am_expression.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gerberex/am_expression.py b/gerberex/am_expression.py index 5400130..f43ba2e 100644 --- a/gerberex/am_expression.py +++ b/gerberex/am_expression.py @@ -49,6 +49,8 @@ class AMConstantExpression(AMExpression): return self def to_gerber(self, settings=None): + if isinstance(self._value, str): + return self._value gerber = '%.6g' % self._value return '%.6f' % self._value if 'e' in gerber else gerber -- cgit