Commit 4b56fad3 authored by Jan Kiene's avatar Jan Kiene
Browse files

write out patched config

parent cf95cb5c
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@ def reorder_items_list(items_list: list, concatenation_order: list) -> list:
    name_to_full = {Path(full_file).name: full_file for full_file in items_list}

    if set(name_to_full.keys()) != set(concatenation_order):
        raise ValueError("Items given in concatenation_order are not identical to what was found inthe input folder")
        raise ValueError(f"Items given in concatenation_order {concatenation_order} are not identical to what was found in the input folder {name_to_full.keys()}")

    ordered_full_files = [
        name_to_full[name] for name in concatenation_order if name in name_to_full
+1 −0
Original line number Diff line number Diff line
@@ -141,6 +141,7 @@ def test_generate_test_items(exp_lab_pair):
    # patch concatenation order
    if config.preprocessing_2.get("concatenate_input", None) is not None:
        config.preprocessing_2["concatenation_order"] = sorted(input_filenames)
        config.to_file(cfg)

    generate_test(args)