diff options
author | jaseg <git@jaseg.de> | 2022-01-19 00:36:05 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-01-19 00:36:05 +0100 |
commit | 9e86bf6b3e92706c190283af83d71999fee03442 (patch) | |
tree | e3bb083ae976859df953d9d16d2eb5f628f0ab45 /gerbonara/gerber/aperture_macros/expression.py | |
parent | d85790bc6d40deb1d52cc5d8a4c178f664635625 (diff) | |
download | gerbonara-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.py | 4 |
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: |