Commit 4df2b665 authored by Anika Treffehn's avatar Anika Treffehn
Browse files

format and error instead of warning for no convergence in loudness loop

parent 54049d43
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -291,7 +291,7 @@ def loudness_norm(
            )

    if num_iter >= 10:
        warn(
        raise ValueError(
            f"Loudness did not converge to desired value, stopping at: {loudness_after:.2f}"
        )

+0 −2
Original line number Diff line number Diff line
@@ -366,7 +366,6 @@ def process_item(
        for im in range(len(in_meta)):
            out_meta.append(out_dir.joinpath(f"{Path(out_file).stem}.wav.{im}.csv"))

    tx_condition = False
    # execute each process sequentially, feed output into input of next process
    for p, (input, output), input_meta in zip(
        chain, pairwise(processing_paths), processing_paths_meta[:-1]
@@ -389,7 +388,6 @@ def process_item(


def remove_preamble(x, out_fmt, fs, repeat_signal, preamble, meta, logger):

    # remove preamble for ISM metadata
    if out_fmt.startswith("ISM"):
        # cut first half of the metadata