Skip to content

Commit

Permalink
use ordered list instead of unordered set for list file (#351)
Browse files Browse the repository at this point in the history
Co-authored-by: Josef Haupt <[email protected]>
  • Loading branch information
Josef-Haupt and Josef Haupt authored Jun 4, 2024
1 parent bb3beeb commit 27e3675
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def combineResults(folder: str, output_file: str):
# Combine all files
s_id = 1
time_offset = 0
audiofiles = set()
audiofiles = []

with open(os.path.join(folder, output_file), "w", encoding="utf-8") as f:
f.write(RTABLE_HEADER)
Expand All @@ -221,7 +221,7 @@ def combineResults(folder: str, output_file: str):
f_name = lines[1].split("\t")[10]
f_duration = audio.getAudioFileLength(f_name, cfg.SAMPLE_RATE)

audiofiles.add(f_name)
audiofiles.append(f_name)

for line in lines[1:]:

Expand Down

0 comments on commit 27e3675

Please sign in to comment.