Loading generate_test.py +18 −3 Original line number Diff line number Diff line Loading @@ -112,8 +112,23 @@ def create_experiment_setup(experiment, lab) -> list[Path]: cfgs = list() for cat in categories: suffix = cat + f"-lab_{lab}" input_path = base_path.joinpath(f"proc_input_{lab}").joinpath(cat) output_path = base_path.joinpath(f"proc_output_{lab}").joinpath(cat) input_path = base_path.joinpath(f"proc_input_{lab}") output_path = base_path.joinpath(f"proc_output_{lab}") if experiment in EXPERIMENTS_P800: input_path = input_path.joinpath(cat) output_path = output_path.joinpath(cat) cfg_path = default_cfg_path.parent.joinpath(f"{experiment}-{cat}-lab_{lab}.yml") # this is for catching the Mushra MASA tests elif experiment in IN_FMT_FOR_MASA_EXPS: fmt = fmt_for_category[cat] input_path = input_path.joinpath(fmt) output_path = output_path.joinpath(fmt) cfg_path = default_cfg_path.parent.joinpath(f"{experiment}-{fmt}-lab_{lab}.yml") elif experiment in EXPERIMENTS_BS1534: cfg_path = default_cfg_path.parent.joinpath(f"{experiment}-lab_{lab}.yml") if experiment == "P800-2": bg_noise_path = base_path.joinpath("background_noise").joinpath( f"background_noise_{suffix}.wav" Loading @@ -122,7 +137,7 @@ def create_experiment_setup(experiment, lab) -> list[Path]: bg_noise_path = base_path.joinpath("background_noise").joinpath( f"background_noise_{cat}.wav" ) cfg_path = default_cfg_path.parent.joinpath(f"{experiment}{cat}-lab_{lab}.yml") cfgs.append(cfg_path) # set new lab- and category-dependent values Loading Loading
generate_test.py +18 −3 Original line number Diff line number Diff line Loading @@ -112,8 +112,23 @@ def create_experiment_setup(experiment, lab) -> list[Path]: cfgs = list() for cat in categories: suffix = cat + f"-lab_{lab}" input_path = base_path.joinpath(f"proc_input_{lab}").joinpath(cat) output_path = base_path.joinpath(f"proc_output_{lab}").joinpath(cat) input_path = base_path.joinpath(f"proc_input_{lab}") output_path = base_path.joinpath(f"proc_output_{lab}") if experiment in EXPERIMENTS_P800: input_path = input_path.joinpath(cat) output_path = output_path.joinpath(cat) cfg_path = default_cfg_path.parent.joinpath(f"{experiment}-{cat}-lab_{lab}.yml") # this is for catching the Mushra MASA tests elif experiment in IN_FMT_FOR_MASA_EXPS: fmt = fmt_for_category[cat] input_path = input_path.joinpath(fmt) output_path = output_path.joinpath(fmt) cfg_path = default_cfg_path.parent.joinpath(f"{experiment}-{fmt}-lab_{lab}.yml") elif experiment in EXPERIMENTS_BS1534: cfg_path = default_cfg_path.parent.joinpath(f"{experiment}-lab_{lab}.yml") if experiment == "P800-2": bg_noise_path = base_path.joinpath("background_noise").joinpath( f"background_noise_{suffix}.wav" Loading @@ -122,7 +137,7 @@ def create_experiment_setup(experiment, lab) -> list[Path]: bg_noise_path = base_path.joinpath("background_noise").joinpath( f"background_noise_{cat}.wav" ) cfg_path = default_cfg_path.parent.joinpath(f"{experiment}{cat}-lab_{lab}.yml") cfgs.append(cfg_path) # set new lab- and category-dependent values Loading