summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/utils.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-01-22 14:02:07 +0100
committerjaseg <git@jaseg.de>2022-01-22 14:02:07 +0100
commitb85e8b0065c1b90159970ed8139f0747e953eb3f (patch)
tree0851adb7626a06d7cf7dad67ea7fbe9c2b61bdfb /gerbonara/gerber/utils.py
parent9966fa5ae65509877db4d8e3dc6508963750bfc4 (diff)
downloadgerbonara-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.py5
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):