diff options
author | jaseg <git@jaseg.de> | 2023-03-31 14:11:30 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-04-10 23:57:15 +0200 |
commit | a85a7d426e02d6e3530231585e8e633abcd6211a (patch) | |
tree | b9aabd189e1e89cce9d4370d0a1c7e88b3171b5d /gerbonara/layer_rules.py | |
parent | ec0ecdeb68431485e7f86cfd6e5a3bbdffd93bfb (diff) | |
download | gerbonara-a85a7d426e02d6e3530231585e8e633abcd6211a.tar.gz gerbonara-a85a7d426e02d6e3530231585e8e633abcd6211a.tar.bz2 gerbonara-a85a7d426e02d6e3530231585e8e633abcd6211a.zip |
Improve drill layer handling
Now, drill_pth and drill_npth contain those layers where they match, and
everything else is put in _drill_layers. The @property drill_layers now
returns everything.
Diffstat (limited to 'gerbonara/layer_rules.py')
-rw-r--r-- | gerbonara/layer_rules.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gerbonara/layer_rules.py b/gerbonara/layer_rules.py index 2b33d25..aae52ae 100644 --- a/gerbonara/layer_rules.py +++ b/gerbonara/layer_rules.py @@ -47,7 +47,9 @@ MATCH_RULES = { '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)', + 'drill nonplated': r'.*\-NPTH.(drl)', + 'drill plated': r'.*\-PTH.(drl)', + 'drill unknown': r'.*\.(drl)', 'other netlist': r'.*\.d356', }, |