summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/layer_rules.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-01-29 03:05:27 +0100
committerjaseg <git@jaseg.de>2022-01-29 03:05:27 +0100
commit80121e6e5aecea1faf5d33b0511ccc2827d820f4 (patch)
treeff634825e3196731df57b7e41a0835d41f4248eb /gerbonara/gerber/layer_rules.py
parent35f24607fe65385370cd6e267ea5afffbfbd1e34 (diff)
downloadgerbonara-80121e6e5aecea1faf5d33b0511ccc2827d820f4.tar.gz
gerbonara-80121e6e5aecea1faf5d33b0511ccc2827d820f4.tar.bz2
gerbonara-80121e6e5aecea1faf5d33b0511ccc2827d820f4.zip
Make all layer matching tests run through
Diffstat (limited to 'gerbonara/gerber/layer_rules.py')
-rw-r--r--gerbonara/gerber/layer_rules.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/gerbonara/gerber/layer_rules.py b/gerbonara/gerber/layer_rules.py
index 871e44f..3d05cc0 100644
--- a/gerbonara/gerber/layer_rules.py
+++ b/gerbonara/gerber/layer_rules.py
@@ -12,7 +12,9 @@ MATCH_RULES = {
'bottom paste': r'.*\.gbp',
'inner copper': r'.*\.gp?([0-9]+)',
'mechanical outline': r'.*\.(gko|gm[0-9]+)',
- 'drill unknown': r'.*\.(txt)',
+ # this rule is slightly generic to catch the drill files of things like geda and pcb-rnd that otherwise use altium's
+ # layer names.
+ 'drill unknown': r'.*\.(txt|drl|xln)',
},
'kicad': {
@@ -113,10 +115,10 @@ MATCH_RULES = {
'drill nonplated': r'.*ThruHoleNonPlated.ncd',
'drill plated': r'.*ThruHolePlated.ncd',
# list this last to prefer the actual excellon files
- 'drill plated': r'.*DrillDrawingThrough.gdo',
+ #'drill plated': r'.*DrillDrawingThrough.gdo',
# match these last to avoid shadowing other layers via substring match
- 'top copper': r'.*Top.gdo',
- 'bottom copper': r'.*Bottom.gdo',
+ 'top copper': r'.*[^enk]Top.gdo',
+ 'bottom copper': r'.*[^enk]Bottom.gdo',
},
'allegro': {