Skip to content

Commit

Permalink
bug fix in labelmakr.py
Browse files Browse the repository at this point in the history
- fixed pathlib issues when using "fix labels" tab
- removed debug commands for some checkboxes
  • Loading branch information
spicytigermeat authored Apr 13, 2024
1 parent 9497906 commit a6513c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions labelmakr.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ def main_window(self):
onvalue=True,
offvalue=False,
text=self.L('dxer'),
command=lambda: dummy(),
font=self.font)
self.dxer_cb.grid(row=1, column=0, padx=5, pady=5, sticky=tk.N)
self.dxer_cb_tt = CTkToolTip(self.dxer_cb, delay=self.tt_delay, message=self.L('dxer_tt'), font=self.font)
Expand All @@ -382,7 +381,6 @@ def main_window(self):
onvalue=True,
offvalue=False,
text=self.L('uhr_merge'),
command=lambda: dummy(),
font=self.font)
self.uhr_merge_cb.grid(row=1, column=1, padx=5, pady=5, sticky=tk.N)
self.uhr_merge_tt = CTkToolTip(self.uhr_merge_cb, delay=self.tt_delay, message=self.L('uhr_merge_tt'), font=self.font)
Expand Down Expand Up @@ -588,7 +586,7 @@ def update_cpu_render(self):
def run_label_fix(self):
# uses labbu to fix the files

corpus_list = [name for name in os.listdir(str(P('./corpus'))) if os.path.isdir(str(P('./corpus' / name)))]
corpus_list = [name for name in os.listdir(str(P(CORPUS))) if os.path.isdir(str(P(CORPUS / name)))]

for singer in corpus_list:
for file in glob(str(P(f'./corpus/{singer}/labels/*.lab')), recursive=True):
Expand Down

0 comments on commit a6513c3

Please sign in to comment.