Commit 20c99b22 authored by Anika Treffehn's avatar Anika Treffehn
Browse files

format

parent 6d42e854
Loading
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -226,7 +226,11 @@ def preprocess(cfg, logger):
    )

    # Re-ordering items based on concatenation order
    if hasattr(cfg, "preprocessing_2") and cfg.preprocessing_2.get("concatenate_input", False) and cfg.preprocessing_2.get("concatenation_order", None) is not None:
    if (
        hasattr(cfg, "preprocessing_2")
        and cfg.preprocessing_2.get("concatenate_input", False)
        and cfg.preprocessing_2.get("concatenation_order", None) is not None
    ):
        cfg.items_list = reorder_items_list(cfg.items_list, cfg.concatenation_order)

    if cfg.metadata_path[0] is not None:
@@ -273,7 +277,11 @@ def preprocess_2(cfg, logger):
    )

    # Re-ordering items based on concatenation order
    if hasattr(cfg, "preprocessing_2") and cfg.preprocessing_2.get("concatenate_input", False) and cfg.preprocessing_2.get("concatenation_order", None) is not None:
    if (
        hasattr(cfg, "preprocessing_2")
        and cfg.preprocessing_2.get("concatenate_input", False)
        and cfg.preprocessing_2.get("concatenation_order", None) is not None
    ):
        cfg.items_list = reorder_items_list(cfg.items_list, cfg.concatenation_order)

    if cfg.metadata_path[0] is not None: