summaryrefslogtreecommitdiff
path: root/gerbonara/layers.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-04-26 00:35:37 +0200
committerjaseg <git@jaseg.de>2023-04-26 00:35:37 +0200
commit1f841ad71b9b43cf304649d45a5cdb8524751349 (patch)
tree50a725f94b1eed8931e564ca1f105d603aea97f2 /gerbonara/layers.py
parent59fe7b3b8314d62834a2dbfa1e9735862f16215f (diff)
downloadgerbonara-1f841ad71b9b43cf304649d45a5cdb8524751349.tar.gz
gerbonara-1f841ad71b9b43cf304649d45a5cdb8524751349.tar.bz2
gerbonara-1f841ad71b9b43cf304649d45a5cdb8524751349.zip
Fix last failing tests. Rerun pending.
Diffstat (limited to 'gerbonara/layers.py')
-rw-r--r--gerbonara/layers.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/gerbonara/layers.py b/gerbonara/layers.py
index 76ae12e..97e15b0 100644
--- a/gerbonara/layers.py
+++ b/gerbonara/layers.py
@@ -82,6 +82,8 @@ class NamingScheme:
'other drawings': '{board_name}-Dwgs.User.gbr',
'top fabrication': '{board_name}-F.Fab.gbr',
'bottom fabrication': '{board_name}-B.Fab.gbr',
+ 'top adhesive': '{board_name}-F.Adhes.gbr',
+ 'bottom adhesive': '{board_name}-B.Adhes.gbr',
'top courtyard': '{board_name}-F.CrtYd.gbr',
'bottom courtyard': '{board_name}-B.CrtYd.gbr',
'other netlist': '{board_name}.d356',
@@ -290,7 +292,9 @@ class LayerStack:
:py:obj:`"altium"`
"""
- def __init__(self, graphic_layers=None, drill_pth=None, drill_npth=None, drill_layers=(), netlist=None, board_name=None, original_path=None, was_zipped=False, generator=None, courtyard=False, fabrication=False):
+ def __init__(self, graphic_layers=None, drill_pth=None, drill_npth=None, drill_layers=(), netlist=None,
+ board_name=None, original_path=None, was_zipped=False, generator=None, courtyard=False,
+ fabrication=False, adhesive=False):
if not drill_layers and (graphic_layers, drill_pth, drill_npth) == (None, None, None):
graphic_layers = {tuple(layer.split()): GerberFile()
for layer in ('top paste', 'top silk', 'top mask', 'top copper',
@@ -307,6 +311,11 @@ class LayerStack:
**graphic_layers,
('bottom', 'fabrication'): GerberFile()}
+ if adhesive:
+ graphic_layers = {('top', 'adhesive'): GerberFile(),
+ **graphic_layers,
+ ('bottom', 'adhesive'): GerberFile()}
+
drill_pth = ExcellonFile()
drill_npth = ExcellonFile()