diff options
author | jaseg <git@jaseg.de> | 2021-11-06 22:00:14 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-11-06 22:00:14 +0100 |
commit | 5aa184757e4fb5c2fc141c41aed2fccc0c96ce7e (patch) | |
tree | f2564f7602d6b044880617a1505729d612d83219 /gerbonara/gerber/am_statements.py | |
parent | 3538398e84b6899a61cfd1e3010c24e1f3098c8f (diff) | |
download | gerbonara-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.py | 3 |
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: |