From 8d5403260b72115cfd9f401289dfd0f894e272ea Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 29 Apr 2023 11:28:38 +0200 Subject: Fix aperture macro rotation issue and add missing data files --- gerbonara/apertures.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gerbonara/apertures.py') diff --git a/gerbonara/apertures.py b/gerbonara/apertures.py index 512b4dd..d901765 100644 --- a/gerbonara/apertures.py +++ b/gerbonara/apertures.py @@ -421,13 +421,13 @@ class ApertureMacroInstance(Aperture): return replace(self, macro=self.macro.dilated(offset, unit)) @lru_cache() - def rotated(self, angle=0): + def rotated(self, angle=0.0): if math.isclose(angle % (2*math.pi), 0): return self else: return self.to_macro(angle) - def to_macro(self, rotation=0): + def to_macro(self, rotation=0.0): return replace(self, macro=self.macro.rotated(rotation)) def scaled(self, scale): -- cgit