Commit 2a30de5c authored by Jan Kiene's avatar Jan Kiene
Browse files

Make glob more explicit to only get actual output conditions.

Credits to @tamarapu
parent 1b05e2cc
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ def get_hash_line_for_file(file: Path, experiment_dir: Path):


def main(experiment_dir, out_file):
    wav_files = sorted(experiment_dir.glob("proc_output*/**/*c??.wav"))
    wav_files = sorted(experiment_dir.glob("proc_output*/**/*c[0-9][0-9].wav"))

    hashlines = [get_hash_line_for_file(f, experiment_dir) for f in wav_files]
    count = Counter([line.split()[-1] for line in hashlines])