summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/am_statements.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-11-06 22:00:14 +0100
committerjaseg <git@jaseg.de>2021-11-06 22:00:14 +0100
commit5aa184757e4fb5c2fc141c41aed2fccc0c96ce7e (patch)
treef2564f7602d6b044880617a1505729d612d83219 /gerbonara/gerber/am_statements.py
parent3538398e84b6899a61cfd1e3010c24e1f3098c8f (diff)
downloadgerbonara-5aa184757e4fb5c2fc141c41aed2fccc0c96ce7e.tar.gz
gerbonara-5aa184757e4fb5c2fc141c41aed2fccc0c96ce7e.tar.bz2
gerbonara-5aa184757e4fb5c2fc141c41aed2fccc0c96ce7e.zip
Make unit test not crash on import
Diffstat (limited to 'gerbonara/gerber/am_statements.py')
-rw-r--r--gerbonara/gerber/am_statements.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gerbonara/gerber/am_statements.py b/gerbonara/gerber/am_statements.py
index 803a123..61ddf42 100644
--- a/gerbonara/gerber/am_statements.py
+++ b/gerbonara/gerber/am_statements.py
@@ -21,6 +21,7 @@ import math
from .primitives import *
from .utils import validate_coordinates, inch, metric, rotate_point
+from .am_expression import AMConstantExpression
@@ -57,7 +58,7 @@ class AMPrimitive(object):
"""
def __init__(self, code, exposure=None, rotation=AMConstantExpression(0)):
- VALID_CODES = (0, 1, 2, 4, 5, 6, 7, 20, 21, 22, 9999)
+ VALID_CODES = (0, 1, 2, 4, 5, 7, 20, 21, 22, 9999)
if not isinstance(code, int):
raise TypeError('Aperture Macro Primitive code must be an integer')
elif code not in VALID_CODES: