summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/rs274x.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerbonara/gerber/rs274x.py')
-rw-r--r--gerbonara/gerber/rs274x.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/gerbonara/gerber/rs274x.py b/gerbonara/gerber/rs274x.py
index b5fbfac..eea1cf7 100644
--- a/gerbonara/gerber/rs274x.py
+++ b/gerbonara/gerber/rs274x.py
@@ -165,9 +165,6 @@ class GerberFile(CamFile):
yield EofStmt()
- def to_gerber(self):
- return '\n'.join(self.generate_statements())
-
def __str__(self):
return f'<GerberFile with {len(self.apertures)} apertures, {len(self.objects)} objects>'
@@ -599,10 +596,10 @@ class GerberParser:
}
if (kls := aperture_classes.get(match['shape'])):
- new_aperture = kls(*modifiers)
+ new_aperture = kls(*modifiers, unit=self.file_settings.unit)
elif (macro := self.aperture_macros.get(match['shape'])):
- new_aperture = apertures.ApertureMacroInstance(macro, modifiers)
+ new_aperture = apertures.ApertureMacroInstance(macro, modifiers, unit=self.file_settings.unit)
else:
raise ValueError(f'Aperture shape "{match["shape"]}" is unknown')