Commit 42551461 authored by Jan Kiene's avatar Jan Kiene
Browse files

add category test with P800-2

parent 86c3c5d0
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -12,15 +12,19 @@ class Arguments:
        self.debug = False


def create_items(testname):
    p800_path = Path(f"experiments/selection/{testname}")
    p800_cfgs = p800_path.joinpath("config").glob("P800*cat*.yml")

    for cfg in p800_cfgs:
        args_dummy = Arguments(str(cfg))
        generate_test(args_dummy)


# if is necessary here so that multiprocessing does not crash
if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser.add_argument("testname", choices=P800_TESTS)
    args = parser.parse_args()

    p800_path = Path(f"experiments/selection/{args.testname}")
    p800_cfgs = p800_path.joinpath("config").glob("P800*cat*.yml")

    for cfg in p800_cfgs:
        args_dummy = Arguments(str(cfg))
        generate_test(args_dummy)
 No newline at end of file
    create_items(args.testname)
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ preprocessing_2:
        ### REQUIRED: SNR for background noise in dB
        snr: 15
        ### REQUIRED: Path to background noise, must have same format and sampling rate as input signal(s)
        background_noise_path: "experiments/selection/P800-2/background_noises/background_noise_cat1.wav"
        background_noise_path: "experiments/selection/P800-2/background_noise/background_noise_cat1.wav"

#################################################
### Bitstream processing
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ preprocessing_2:
        ### REQUIRED: SNR for background noise in dB
        snr: 15
        ### REQUIRED: Path to background noise, must have same format and sampling rate as input signal(s)
        background_noise_path: "experiments/selection/P800-2/background_noises/background_noise_cat2.wav"
        background_noise_path: "experiments/selection/P800-2/background_noise/background_noise_cat2.wav"

#################################################
### Bitstream processing
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ preprocessing_2:
        ### REQUIRED: SNR for background noise in dB
        snr: 15
        ### REQUIRED: Path to background noise, must have same format and sampling rate as input signal(s)
        background_noise_path: "experiments/selection/P800-2/background_noises/background_noise_cat3.wav"
        background_noise_path: "experiments/selection/P800-2/background_noise/background_noise_cat3.wav"

#################################################
### Bitstream processing
Loading