summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/gerber_statements.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-12-30 16:40:14 +0100
committerjaseg <git@jaseg.de>2021-12-30 16:40:14 +0100
commitf4b2e74923cc95c683cd7f5c4732d92e4aafd3ba (patch)
treef713a247d3cc2c11463be1af54ff42b0cd9dfb44 /gerbonara/gerber/gerber_statements.py
parente4941dd5e371e8c9e729a72b8ec30d021bceb0cc (diff)
downloadgerbonara-f4b2e74923cc95c683cd7f5c4732d92e4aafd3ba.tar.gz
gerbonara-f4b2e74923cc95c683cd7f5c4732d92e4aafd3ba.tar.bz2
gerbonara-f4b2e74923cc95c683cd7f5c4732d92e4aafd3ba.zip
Fix rotation bugs, all tests run through
Diffstat (limited to 'gerbonara/gerber/gerber_statements.py')
-rw-r--r--gerbonara/gerber/gerber_statements.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/gerber/gerber_statements.py b/gerbonara/gerber/gerber_statements.py
index 06aee7a..9d318a3 100644
--- a/gerbonara/gerber/gerber_statements.py
+++ b/gerbonara/gerber/gerber_statements.py
@@ -51,7 +51,7 @@ class UnitStmt(ParamStmt):
""" MO - Coordinate unit mode statement """
def to_gerber(self, settings):
- return '%MOMM*%' if settings.units == 'mm' else '%MOIN*%'
+ return '%MOMM*%' if settings.unit == 'mm' else '%MOIN*%'
def __str__(self):
return ('<MO Coordinate unit mode statement>' % mode_str)
@@ -96,7 +96,7 @@ class ApertureMacroStmt(ParamStmt):
self.macro = macro
def to_gerber(self, settings=None):
- unit = settings.units if settings else None
+ unit = settings.unit if settings else None
return f'%AM{self.macro.name}*\n{self.macro.to_gerber(unit=unit)}*\n%'
def __str__(self):