Commit c5aa75be authored by Anika Treffehn's avatar Anika Treffehn
Browse files

formatting

parent 17cf11c0
Loading
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -239,7 +239,12 @@ class EVS(Processing):
        if split_chan_bs_unprocessed != split_chan_bs:
            apply_func_parallel(
                self.dec,
                zip(split_chan_bs_unprocessed, split_chan_out_noerror, repeat(False), repeat(logger)),
                zip(
                    split_chan_bs_unprocessed,
                    split_chan_out_noerror,
                    repeat(False),
                    repeat(logger),
                ),
                None,
                "mt" if self.multiprocessing else None,
                show_progress=False,
@@ -277,7 +282,9 @@ class EVS(Processing):
                md_file_out = out_file.parent / (out_file.name + ".met")
                copyfile(md_file_in, md_file_out)
                if split_chan_bs_unprocessed != split_chan_bs and self.tx_condition:
                    md_file_out_noerror = out_file.parent / (Path(out_file_unprocessed).name + ".met")
                    md_file_out_noerror = out_file.parent / (
                        Path(out_file_unprocessed).name + ".met"
                    )
                    copyfile(md_file_in, md_file_out_noerror)

        elif out_file.suffix == ".txt":
+9 −5
Original line number Diff line number Diff line
@@ -153,9 +153,7 @@ class Processing_splitting_scaling(Processing):
                )
            else:
                f_out = Path(
                    str(f)
                    .replace(tmp_name, out_name)
                    .replace(f".{self.name}.", ".")
                    str(f).replace(tmp_name, out_name).replace(f".{self.name}.", ".")
                )
            out_out_files.append(f_out)
        if isinstance(audio.fromtype(self.out_fmt), audio.ObjectBasedAudio):
@@ -208,7 +206,11 @@ class Processing_splitting_scaling(Processing):
        # reverse concatenation
        if self.concatenate_input:
            # read out splits file -> start/end, names, sampling rate
            splits_info_file = Path(in_file.parent.parent.joinpath('tmp_preprocessing_2').joinpath("undo_concat.txt"))
            splits_info_file = Path(
                in_file.parent.parent.joinpath("tmp_preprocessing_2").joinpath(
                    "undo_concat.txt"
                )
            )
            splits, split_names, split_fs = read_splits_file(splits_info_file)

            # split file
@@ -269,7 +271,9 @@ def adjust_loudness(
    file_splits, out_fmt, fs, loudness, loudness_fmt, meta, logger=None
):
    if logger:
        logger.debug("Apply normal loudness scaling. The following loudness values are in the concatenation order.")
        logger.debug(
            "Apply normal loudness scaling. The following loudness values are in the concatenation order."
        )
    scaled_signals = []
    for f, m in zip(file_splits, meta):
        audio_object = audio.fromarray(fmt=out_fmt, x=f, fs=fs)