Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions gerbmerge/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
# feed/speed (for Protel)
xtdef2_pat = re.compile(r'^(T\d+)C([0-9.]+)(?:F\d+)?(?:S\d+)?$') # Tool+diameter definition with optional
# feed/speed at the end (for OrCAD)
xzsup_pat = re.compile(r'^INCH(,([LT])Z)?$') # Leading/trailing zeros INCLUDED
xzsup_pat = re.compile(r'^(?:INCH|METRIC)(,([LT])Z)?$') # Leading/trailing zeros INCLUDED

XIgnoreList = ( \
re.compile(r'^%$'),
Expand Down Expand Up @@ -672,9 +672,6 @@ def xln2tenthou2 (L, divisor=divisor, zeropadto=zeropadto):
if line[:6]=='METRIC':
if (config.Config['measurementunits'] == 'inch'):
raise RuntimeError, "File %s units do match config file" % fullname
else:
#print "ignoring METRIC directive: " + line
continue # ignore it so func doesn't choke on it

if line[:3] == 'T00': # a tidying up that we can ignore
continue
Expand Down