summaryrefslogtreecommitdiff
path: root/gerbonara/apertures.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-04-11 00:52:07 +0200
committerjaseg <git@jaseg.de>2023-04-11 00:52:32 +0200
commit138f6504e767b906ef263f483c6a7d355bc2dc48 (patch)
tree9bc27bfaee8933d82cc842671b17d8ca178a8df1 /gerbonara/apertures.py
parentb0bc7971bcaf551cc5293d56b3122c5d04502faa (diff)
downloadgerbonara-138f6504e767b906ef263f483c6a7d355bc2dc48.tar.gz
gerbonara-138f6504e767b906ef263f483c6a7d355bc2dc48.tar.bz2
gerbonara-138f6504e767b906ef263f483c6a7d355bc2dc48.zip
Fix failing tests
Diffstat (limited to 'gerbonara/apertures.py')
-rw-r--r--gerbonara/apertures.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/apertures.py b/gerbonara/apertures.py
index bdebf50..b411412 100644
--- a/gerbonara/apertures.py
+++ b/gerbonara/apertures.py
@@ -452,7 +452,7 @@ class PolygonAperture(Aperture):
def _params(self, unit=None):
rotation = self.rotation % (2*math.pi / self.n_vertices)
- if math.isclose(rotation, 0, abs_tol=1-e6):
+ if math.isclose(rotation, 0, abs_tol=1e-6):
rotation = None
if self.hole_dia is not None: