diff options
author | jaseg <git@jaseg.de> | 2022-01-22 14:02:07 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-01-22 14:02:07 +0100 |
commit | b85e8b0065c1b90159970ed8139f0747e953eb3f (patch) | |
tree | 0851adb7626a06d7cf7dad67ea7fbe9c2b61bdfb /gerbonara/gerber/utils.py | |
parent | 9966fa5ae65509877db4d8e3dc6508963750bfc4 (diff) | |
download | gerbonara-b85e8b0065c1b90159970ed8139f0747e953eb3f.tar.gz gerbonara-b85e8b0065c1b90159970ed8139f0747e953eb3f.tar.bz2 gerbonara-b85e8b0065c1b90159970ed8139f0747e953eb3f.zip |
Excellon: fix first tests
Diffstat (limited to 'gerbonara/gerber/utils.py')
-rw-r--r-- | gerbonara/gerber/utils.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gerbonara/gerber/utils.py b/gerbonara/gerber/utils.py index d1045ad..30b03c9 100644 --- a/gerbonara/gerber/utils.py +++ b/gerbonara/gerber/utils.py @@ -24,6 +24,7 @@ files. """ import os +import re from enum import Enum from math import radians, sin, cos, sqrt, atan2, pi @@ -41,7 +42,9 @@ class RegexMatcher: def handle(self, inst, line): for regex, handler in self.mapping.items(): if (match := re.fullmatch(regex, line)): - handler(match) + #print(' handler', handler.__name__) + handler(inst, match) + break class LengthUnit: def __init__(self, name, shorthand, this_in_mm): |