diff options
author | jaseg <git@jaseg.de> | 2022-01-17 23:14:52 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-01-17 23:14:52 +0100 |
commit | 73a44901c0ef0e94e9465c2f35750ca6f85a4473 (patch) | |
tree | a5c66526a38fe5a4e3d004dc7127680b6d0e25c6 /gerbonara/gerber/aperture_macros/parse.py | |
parent | 336a18fb493c79824323a59865083a0037a4a2f4 (diff) | |
download | gerbonara-73a44901c0ef0e94e9465c2f35750ca6f85a4473.tar.gz gerbonara-73a44901c0ef0e94e9465c2f35750ca6f85a4473.tar.bz2 gerbonara-73a44901c0ef0e94e9465c2f35750ca6f85a4473.zip |
Excellon, unit conversion WIP
Diffstat (limited to 'gerbonara/gerber/aperture_macros/parse.py')
-rw-r--r-- | gerbonara/gerber/aperture_macros/parse.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gerbonara/gerber/aperture_macros/parse.py b/gerbonara/gerber/aperture_macros/parse.py index 375bb5b..43af309 100644 --- a/gerbonara/gerber/aperture_macros/parse.py +++ b/gerbonara/gerber/aperture_macros/parse.py @@ -11,6 +11,7 @@ import math from . import primitive as ap from .expression import * +from ..utils import MM def rad_to_deg(x): return (x / math.pi) * 180 @@ -98,7 +99,7 @@ class ApertureMacro: def __hash__(self): return hash(self.to_gerber()) - def dilated(self, offset, unit='mm'): + def dilated(self, offset, unit=MM): dup = copy.deepcopy(self) new_primitives = [] for primitive in dup.primitives: |