diff options
author | jaseg <git@jaseg.de> | 2021-12-30 23:40:06 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-12-30 23:40:06 +0100 |
commit | ad87bb610f5d1b063fb5a8259d6aabbc6955b65e (patch) | |
tree | d4b8dd16f6dd7674e8aee5c92e35c7d3cf260f83 /gerbonara/gerber/rs274x.py | |
parent | 9db91239ea0eac21f38435c1388f86f94f9ce8f3 (diff) | |
download | gerbonara-ad87bb610f5d1b063fb5a8259d6aabbc6955b65e.tar.gz gerbonara-ad87bb610f5d1b063fb5a8259d6aabbc6955b65e.tar.bz2 gerbonara-ad87bb610f5d1b063fb5a8259d6aabbc6955b65e.zip |
fix ALL the tests ^^
Diffstat (limited to 'gerbonara/gerber/rs274x.py')
-rw-r--r-- | gerbonara/gerber/rs274x.py | 7 |
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') |