diff options
author | jaseg <git@jaseg.de> | 2021-02-06 09:38:22 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-02-06 09:38:38 +0100 |
commit | 3f9295b9d0c2142c46aa238836debdd472811899 (patch) | |
tree | aee493576d4bb8a56d59f00e0d4bf3fbc1320c92 | |
parent | ca23fbd9534ab3cba3fd7b032816766c1150ebf9 (diff) | |
download | pcb-tools-extension-3f9295b9d0c2142c46aa238836debdd472811899.tar.gz pcb-tools-extension-3f9295b9d0c2142c46aa238836debdd472811899.tar.bz2 pcb-tools-extension-3f9295b9d0c2142c46aa238836debdd472811899.zip |
Fix support for comments in aperture definitions
-rw-r--r-- | gerberex/am_expression.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |