summaryrefslogtreecommitdiff
path: root/gerbonara/apertures.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-04-26 00:35:37 +0200
committerjaseg <git@jaseg.de>2023-04-26 00:35:37 +0200
commit1f841ad71b9b43cf304649d45a5cdb8524751349 (patch)
tree50a725f94b1eed8931e564ca1f105d603aea97f2 /gerbonara/apertures.py
parent59fe7b3b8314d62834a2dbfa1e9735862f16215f (diff)
downloadgerbonara-1f841ad71b9b43cf304649d45a5cdb8524751349.tar.gz
gerbonara-1f841ad71b9b43cf304649d45a5cdb8524751349.tar.bz2
gerbonara-1f841ad71b9b43cf304649d45a5cdb8524751349.zip
Fix last failing tests. Rerun pending.
Diffstat (limited to 'gerbonara/apertures.py')
-rw-r--r--gerbonara/apertures.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/apertures.py b/gerbonara/apertures.py
index 415eeee..feccb7f 100644
--- a/gerbonara/apertures.py
+++ b/gerbonara/apertures.py
@@ -387,14 +387,14 @@ class ObroundAperture(Aperture):
if self.w > self.h:
inst = self
else:
- inst = replace(self, w=self.h, h=self.w, **self._rotate_hole_90(), rotation=rotation+self.rotation-90)
+ inst = replace(self, w=self.h, h=self.w, **self._rotate_hole_90(), rotation=self.rotation-math.pi/2)
return ApertureMacroInstance(GenericMacros.obround,
[MM(inst.w, self.unit),
MM(inst.h, self.unit),
MM(inst.hole_dia, self.unit) or 0,
MM(inst.hole_rect_h, self.unit) or 0,
- inst.rotation])
+ inst.rotation + rotation])
def _params(self, unit=None):
return _strip_right(