summaryrefslogtreecommitdiff
path: root/gerbonara/layer_rules.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-02-06 01:10:17 +0100
committerjaseg <git@jaseg.de>2022-02-06 01:10:17 +0100
commit263617ca754fc7b3fc550a33934fcbcbe5ef8acf (patch)
tree48bee309f4311a030cae5ed518d6499a93edfb8b /gerbonara/layer_rules.py
parent5c4e18031623207b31855ff58be6b4c907962474 (diff)
downloadgerbonara-263617ca754fc7b3fc550a33934fcbcbe5ef8acf.tar.gz
gerbonara-263617ca754fc7b3fc550a33934fcbcbe5ef8acf.tar.bz2
gerbonara-263617ca754fc7b3fc550a33934fcbcbe5ef8acf.zip
Add Zuken tests and fix parsing
Diffstat (limited to 'gerbonara/layer_rules.py')
-rw-r--r--gerbonara/layer_rules.py28
1 files changed, 12 insertions, 16 deletions
diff --git a/gerbonara/layer_rules.py b/gerbonara/layer_rules.py
index fc9af7a..c77c198 100644
--- a/gerbonara/layer_rules.py
+++ b/gerbonara/layer_rules.py
@@ -37,16 +37,16 @@ MATCH_RULES = {
},
'kicad': {
- 'top copper': r'.*\.gtl|.*f.cu.*',
- 'top mask': r'.*\.gts|.*f.mask.*',
- 'top silk': r'.*\.gto|.*f.silks.*',
- 'top paste': r'.*\.gtp|.*f.paste.*',
- 'bottom copper': r'.*\.gbl|.*b.cu.*',
- 'bottom mask': r'.*\.gbs|.*b.mask.*',
- 'bottom silk': r'.*\.gbo|.*b.silks.*',
- 'bottom paste': r'.*\.gbp|.*b.paste.*',
- 'inner copper': r'.*\.gp?([0-9]+)|.*inn?e?r?([0-9]+).cu.*',
- 'mechanical outline': r'.*\.(gm[0-9]+)|.*edge.cuts.*',
+ 'top copper': r'.*\.gtl|.*f.cu.(gbr|gtl)',
+ 'top mask': r'.*\.gts|.*f.mask.(gbr|gts)',
+ 'top silk': r'.*\.gto|.*f.silks.(gbr|gto)',
+ 'top paste': r'.*\.gtp|.*f.paste.(gbr|gtp)',
+ 'bottom copper': r'.*\.gbl|.*b.cu.(gbr|gbl)',
+ 'bottom mask': r'.*\.gbs|.*b.mask.(gbr|gbs)',
+ 'bottom silk': r'.*\.gbo|.*b.silks.(gbr|gbo)',
+ 'bottom paste': r'.*\.gbp|.*b.paste.(gbr|gbp)',
+ 'inner copper': r'.*\.gp?([0-9]+)|.*inn?e?r?([0-9]+).cu.(?:gbr|g[0-9]+)',
+ 'mechanical outline': r'.*\.(gm[0-9]+)|.*edge.cuts.(gbr|gm1)',
'drill plated': r'.*\.(drl)',
'other netlist': r'.*\.d356',
},
@@ -149,13 +149,9 @@ MATCH_RULES = {
'allegro': {
# Allegro doesn't have any widespread convention, so we rely heavily on the layer name auto-guesser here.
- 'drill mech': r'.*\.rou',
- 'drill mech': r'.*\.drl',
+ 'drill mech': r'.*\.(drl|rou)',
'generic gerber': r'.*\.art',
- 'excellon params': r'nc_param\.txt',
- # put .log file last to prefer .txt
- 'excellon params': r'ncdrill\.log',
- 'excellon params': r'ncroute\.log',
+ 'excellon params': r'nc_param\.txt|ncdrill\.log|ncroute\.log',
'other netlist': r'.*\.ipc', # default rule due to lack of tool-specific examples
},