summaryrefslogtreecommitdiff
path: root/gerber
diff options
context:
space:
mode:
Diffstat (limited to 'gerber')
-rwxr-xr-xgerber/excellon.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerber/excellon.py b/gerber/excellon.py
index b1b94df..b29f7f0 100755
--- a/gerber/excellon.py
+++ b/gerber/excellon.py
@@ -604,8 +604,8 @@ def detect_excellon_format(data=None, filename=None):
settings = FileSettings(zeros=zeros, format=fmt)
try:
p = ExcellonParser(settings)
- p.parse_raw(data)
- size = tuple([t[0] - t[1] for t in p.bounds])
+ ef = p.parse_raw(data)
+ size = tuple([t[0] - t[1] for t in ef.bounds])
hole_area = 0.0
for hit in p.hits:
tool = hit.tool