summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/aperture_macros/expression.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-01-19 00:36:05 +0100
committerjaseg <git@jaseg.de>2022-01-19 00:36:05 +0100
commit9e86bf6b3e92706c190283af83d71999fee03442 (patch)
treee3bb083ae976859df953d9d16d2eb5f628f0ab45 /gerbonara/gerber/aperture_macros/expression.py
parentd85790bc6d40deb1d52cc5d8a4c178f664635625 (diff)
downloadgerbonara-9e86bf6b3e92706c190283af83d71999fee03442.tar.gz
gerbonara-9e86bf6b3e92706c190283af83d71999fee03442.tar.bz2
gerbonara-9e86bf6b3e92706c190283af83d71999fee03442.zip
Fix old gerber tests
Diffstat (limited to 'gerbonara/gerber/aperture_macros/expression.py')
-rw-r--r--gerbonara/gerber/aperture_macros/expression.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/gerber/aperture_macros/expression.py b/gerbonara/gerber/aperture_macros/expression.py
index 2375c56..f25fdd2 100644
--- a/gerbonara/gerber/aperture_macros/expression.py
+++ b/gerbonara/gerber/aperture_macros/expression.py
@@ -80,10 +80,10 @@ class UnitExpression(Expression):
if self.unit is None or unit is None or self.unit == unit:
return self._expr
- elif unit == MM:
+ elif MM == unit:
return self._expr * MILLIMETERS_PER_INCH
- elif unit == Inch:
+ elif Inch == unit:
return self._expr / MILLIMETERS_PER_INCH
else: