diff options
author | jaseg <git@jaseg.de> | 2023-04-20 00:46:30 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-04-20 00:46:30 +0200 |
commit | 5ce88e4d1b06dcc846c94ec614fb00f64e85c125 (patch) | |
tree | 30cacf1ffb500c1deebc6b30e8c98d7ec474559a /gerbonara/aperture_macros/expression.py | |
parent | 240e5569aa7521aed321b2607f78d198c36ed8b8 (diff) | |
download | gerbonara-5ce88e4d1b06dcc846c94ec614fb00f64e85c125.tar.gz gerbonara-5ce88e4d1b06dcc846c94ec614fb00f64e85c125.tar.bz2 gerbonara-5ce88e4d1b06dcc846c94ec614fb00f64e85c125.zip |
Fix a bunch of bugs on the way to electroniceel's protoboard layout
Diffstat (limited to 'gerbonara/aperture_macros/expression.py')
-rw-r--r-- | gerbonara/aperture_macros/expression.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gerbonara/aperture_macros/expression.py b/gerbonara/aperture_macros/expression.py index f545aac..0b2168f 100644 --- a/gerbonara/aperture_macros/expression.py +++ b/gerbonara/aperture_macros/expression.py @@ -65,7 +65,10 @@ class Expression: class UnitExpression(Expression): def __init__(self, expr, unit): - self._expr = expr + if isinstance(expr, Expression): + self._expr = expr + else: + self._expr = ConstantExpression(expr) self.unit = unit def to_gerber(self, unit=None): |