Commit 72827b60 authored by Jan Kiene's avatar Jan Kiene
Browse files

run formatter

parent a740ed60
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -64,7 +64,11 @@ VALID_DEC_OUTPUT_CONF = [
    "EXT",
]

PARAM_FILE_ID = "stv" if PARAM_FILE.stem == "self_test" else PARAM_FILE.stem.replace("self_test_", "")
PARAM_FILE_ID = (
    "stv"
    if PARAM_FILE.stem == "self_test"
    else PARAM_FILE.stem.replace("self_test_", "")
)

param_file_test_dict = {}
with open(PARAM_FILE, "r", encoding="UTF-8") as fp:
@@ -326,7 +330,9 @@ def test_param_file_tests(

            dut_tracefile_len = np.genfromtxt(dut_tracefile_dec, delimiter=";")
            ref_tracefile_len = np.genfromtxt(ref_tracefile_dec, delimiter=";")
            tracefile_lengths_differ = dut_tracefile_len.shape[0] != ref_tracefile_len.shape[0]
            tracefile_lengths_differ = (
                dut_tracefile_len.shape[0] != ref_tracefile_len.shape[0]
            )

        fs = int(sampling_rate) * 1000
        output_differs, reason = cmp_pcm(
@@ -371,7 +377,9 @@ def test_param_file_tests(
                metadata_differs = True

        if tracefile_lengths_differ:
            pytest.fail("Different tracefile lengths for JBM decoding - Not all frames were decoded in both ref and dut.")
            pytest.fail(
                "Different tracefile lengths for JBM decoding - Not all frames were decoded in both ref and dut."
            )
        elif get_mld and get_mld_lim > 0:
            if output_differs:
                pytest.fail(reason)