Commit 4145ee21 authored by Anika Treffehn's avatar Anika Treffehn
Browse files

Merge branch 'main' of...

Merge branch 'main' of https://forge.3gpp.org/rep/ivas-codec-pc/ivas-processing-scripts into test_runner_binaries
parents 0daeb803 5add879e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -137,7 +137,11 @@ def main(args):
            # save process info to revert it later
            cfg.pre2 = cfg.proc_chains[0]["processes"][0]
            # preprocess background noise
            if hasattr(cfg, "preprocessing") and hasattr(cfg.pre2, "background_noise"):
            if (
                hasattr(cfg, "preprocessing")
                and hasattr(cfg.pre2, "background_noise")
                and cfg.pre2.background_noise is not None
            ):
                preprocess_background_noise(cfg)
            # preprocess 2
            preprocess_2(cfg, logger)
+10 −0
Original line number Diff line number Diff line
@@ -131,6 +131,16 @@ def create_error_pattern(
        Number of preruns in seed generation
    """

    # checking if the gen-patt version is bug free
    with TemporaryDirectory() as tmp_dir_test:
        tmp_dir_test = Path(tmp_dir_test)
        tmp_sta_file_test = tmp_dir_test.joinpath("sta")
        gen_patt(100, "ep.g192", 5, working_dir=tmp_dir_test)
        if not tmp_sta_file_test.exists():
            raise RuntimeError(
                "Used version of gen-patt was detected to be faulty (unable to write \"sta\"-file). See bin/README.md for details."
            )

    with TemporaryDirectory() as tmp_dir:
        tmp_dir = Path(tmp_dir)

+1 −1
Original line number Diff line number Diff line
@@ -267,7 +267,7 @@ def progressbar(iter: Iterable, width=80):
    def update(progress):
        fill = int(width * progress / count)
        print(
            f"{int(progress/count*100):3d}%{u''}{u''*fill}{(u''*(width-fill))}{u''}{progress}/{count}",
            f"{int(progress/count*100):3d}%{'|'}{'X'*fill}{('.'*(width-fill))}{'|'}{progress}/{count}",
            end="\r",
            file=sys.stdout,
            flush=True,