Commit 63d20378 authored by Jan Kiene's avatar Jan Kiene
Browse files

cleanup and formatting

parent c67103d6
Loading
Loading
Loading
Loading
+9 −7
Original line number Original line Diff line number Diff line
@@ -541,6 +541,7 @@ def test_sba_enc_BWforce_system(
        get_odg=get_odg,
        get_odg=get_odg,
    )
    )



# assumption:
# assumption:
# - the needed reference bitstreams are created by test_sba_enc_system
# - the needed reference bitstreams are created by test_sba_enc_system
# -> reference bitstreams are not any longer created as part of this test
# -> reference bitstreams are not any longer created as part of this test
@@ -574,7 +575,7 @@ def test_sba_plc_system(
    get_mld_lim,
    get_mld_lim,
    abs_tol,
    abs_tol,
    get_ssnr,
    get_ssnr,
    get_odg
    get_odg,
):
):
    SID = 0
    SID = 0
    if dtx == "1" and ivas_br not in ["13200", "16400", "24400", "32000", "64000"]:
    if dtx == "1" and ivas_br not in ["13200", "16400", "24400", "32000", "64000"]:
@@ -692,9 +693,6 @@ def sba_enc(
    if cut_testv:
    if cut_testv:
        # use shortened and potentially gain adjusted input PCM file - create if not present
        # use shortened and potentially gain adjusted input PCM file - create if not present
        # cut input PCM file: currently with mostly fixed (i.e. not test dependant) values
        # cut input PCM file: currently with mostly fixed (i.e. not test dependant) values
        num_channels = "4"  # currently only FOA inputs end up, here
        cut_from = "0.0"
        cut_len = "5.0"
        if cut_gain == "1.0":
        if cut_gain == "1.0":
            cut_file = f"{test_vector_path}/{tag_in}_cut{in_extension}"
            cut_file = f"{test_vector_path}/{tag_in}_cut{in_extension}"
        else:
        else:
@@ -811,12 +809,16 @@ def sba_dec(


    dut_in_pkt = f"{dut_base_path}/sba_bs/pkt/{tag_out}{long_tag_ext}.192"
    dut_in_pkt = f"{dut_base_path}/sba_bs/pkt/{tag_out}{long_tag_ext}.192"
    ref_in_pkt = f"{reference_path}/sba_bs/pkt/{tag_out}{short_tag_ext}.192"
    ref_in_pkt = f"{reference_path}/sba_bs/pkt/{tag_out}{short_tag_ext}.192"
    ref_in_pkt_dutenc = f"{reference_path}/sba_bs/pkt/{tag_out}{short_tag_ext}_dutenc.192"
    ref_in_pkt_dutenc = (
        f"{reference_path}/sba_bs/pkt/{tag_out}{short_tag_ext}_dutenc.192"
    )
    if SID == 1:
    if SID == 1:
        if gain_flag != -1:
        if gain_flag != -1:
            ref_in_pkt_dutenc = f"{reference_path}/sba_bs/pkt/{tag_out}{f"_Gain{gain_flag}"}_SID_dutenc_cut.192"
            ref_in_pkt_dutenc = f"{reference_path}/sba_bs/pkt/{tag_out}{f"_Gain{gain_flag}"}_SID_dutenc_cut.192"
        else:
        else:
            ref_in_pkt_dutenc = f"{reference_path}/sba_bs/pkt/{tag_out}_SID_dutenc_cut.192"
            ref_in_pkt_dutenc = (
                f"{reference_path}/sba_bs/pkt/{tag_out}_SID_dutenc_cut.192"
            )


    plc_file = None
    plc_file = None
    if plc_pattern is not None:
    if plc_pattern is not None: