Skip to content

Commit

Permalink
add separate_guide option and add guide to parts list
Browse files Browse the repository at this point in the history
  • Loading branch information
bat52 committed Aug 10, 2024
1 parent 227e78b commit 08787d5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions pylele_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ def pylele_base_parser(parser = None):
parser.add_argument("-B", "--separate_bridge",
help="Split bridge from body.",
action='store_true')
parser.add_argument("-G", "--separate_guide",
help="Split guide from body.",
action='store_true')
parser.add_argument("-E", "--separate_end",
help="Split end block from body.",
action='store_true')
Expand Down
2 changes: 1 addition & 1 deletion pylele_bottom_assembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def test_bottom_assembly():
'separate_top' : ['-T'],
'separate_neck' : ['-N'],
'separate_fretboard' : ['-F'],
'separate_all' : ['-F','-N','-T','-B','-NU','-FR'],
'separate_all' : ['-F','-N','-T','-B','-NU','-FR','-D','G'],
'gotoh_tuners' : ['-t','gotoh'],
'worm_tuners' : ['-t','worm'],
'big_worm_tuners' : ['-t','bigWorm'],
Expand Down
4 changes: 3 additions & 1 deletion pylele_top_assembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ def gen(self) -> Shape:
topJoiners.append(brdg)

if not guide is None:
if self.cli.separate_bridge: # if cfg.sepBrdg:
if self.cli.separate_guide: # if cfg.sepBrdg:
topCutters.append(LeleGuide(cli=self.cli, isCut=True))
self.add_part(guide)
else:
topJoiners.append(guide)

Expand Down Expand Up @@ -100,6 +101,7 @@ def test_top_assembly():
component = 'top_assembly'
tests = {
'separate_bridge' : ['-B'],
'separate_guide' : ['-G'],
'separate_top' : ['-T'],
'separate_neck' : ['-N'],
'separate_fretboard' : ['-F'],
Expand Down

0 comments on commit 08787d5

Please sign in to comment.