From 74fb384c4c0899f4d6f153da8db748a7a49e78ee Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 9 Nov 2023 19:16:37 +0100 Subject: aperture macros: work around gerbv/jlc wonkiness --- gerbonara/rs274x.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gerbonara/rs274x.py') diff --git a/gerbonara/rs274x.py b/gerbonara/rs274x.py index 1559740..ad78ceb 100644 --- a/gerbonara/rs274x.py +++ b/gerbonara/rs274x.py @@ -131,7 +131,7 @@ class GerberFile(CamFile): nonlocal cache, settings if isinstance(aperture, apertures.ApertureMacroInstance): macro = aperture.macro - macro_def = macro.to_gerber(unit=settings.unit) + macro_def = macro.to_gerber(settings) if macro_def not in cache: cache[macro_def] = macro @@ -283,7 +283,7 @@ class GerberFile(CamFile): self.dedup_apertures() - am_stmt = lambda macro: f'%AM{macro.name}*\n{macro.to_gerber(unit=settings.unit)}*\n%' + am_stmt = lambda macro: f'%AM{macro.name}*\n{macro.to_gerber(settings)}*\n%' for macro in self.aperture_macros(): yield am_stmt(macro) -- cgit