Commit b9bf9387 authored by Jan Kiene's avatar Jan Kiene
Browse files

run formatter

parent 3645562c
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -129,8 +129,15 @@ if __name__ == "__main__":

    parser.add_argument("ref_stats_file", type=str)
    parser.add_argument("dut_stats_file", type=str)
    parser.add_argument("--min_enc_file_length_diff", type=float, default=0.1, dest="min_enc_file_length_diff")
    parser.add_argument("--min_enc_stats_diff", type=float, default=0.1, dest="min_enc_stats_diff")
    parser.add_argument(
        "--min_enc_file_length_diff",
        type=float,
        default=0.1,
        dest="min_enc_file_length_diff",
    )
    parser.add_argument(
        "--min_enc_stats_diff", type=float, default=0.1, dest="min_enc_stats_diff"
    )
    args = parser.parse_args()

    enc_test_result, enc_test_result_msg = cmp_stats_files(**vars(args))
+9 −6
Original line number Diff line number Diff line
@@ -317,7 +317,10 @@ def test_param_file_tests(
    # remove leading "../"
    dec_split = [x[3:] if x.startswith("../") else x for x in dec_split]
    # convert "scripts/" paths into absolute ones
    dec_split = [str(SCRIPTS_DIR.joinpath(x[8:])) if x.startswith("scripts/") else x for x in dec_split]
    dec_split = [
        str(SCRIPTS_DIR.joinpath(x[8:])) if x.startswith("scripts/") else x
        for x in dec_split
    ]

    output_file = dec_split.pop()
    bitstream_file_dec = dec_split.pop()
+46 −44
Original line number Diff line number Diff line
@@ -163,7 +163,6 @@ def test_pca_enc(
            get_enc_stats=get_enc_stats,
        )


    if not encoder_only:
        sba_dec(
            record_property,
@@ -332,7 +331,6 @@ def test_sba_enc_system(
                if enc_test_result != 0:
                    pytest.fail(enc_test_result_msg)


    if not encoder_only:
        sba_dec(
            record_property,
@@ -804,7 +802,7 @@ def test_sba_plc_system(
    abs_tol,
    get_ssnr,
    get_odg,
    get_enc_stats
    get_enc_stats,
):
    sid = 0
    pca = False
@@ -818,7 +816,12 @@ def test_sba_plc_system(
        pytest.skip()

    if bitrate == "13200" or bitrate == "16400":
        if dtx == "1" and gain_flag == 0 and sampling_rate != "16" and plc_pattern == "PLperc12mblen5":
        if (
            dtx == "1"
            and gain_flag == 0
            and sampling_rate != "16"
            and plc_pattern == "PLperc12mblen5"
        ):
            sid = 1
        else:
            pytest.skip()
@@ -898,6 +901,7 @@ def test_sba_plc_system(

#########################################################


def sba_enc(
    dut_encoder_frontend,
    test_vector_path,
@@ -1139,5 +1143,3 @@ def sba_dec(
        # if not keep_files:
        #     os.remove(dut_out_file)
        #     os.remove(dut_pkt_file)

+3 −1
Original line number Diff line number Diff line
@@ -707,7 +707,9 @@ class DecoderFrontend:

            # TODO: centralize this in a utils file
            if system == "Windows":
                netsim_path = SCRIPTS_DIR.joinpath("tools/Win32/networkSimulator_g192.exe")
                netsim_path = SCRIPTS_DIR.joinpath(
                    "tools/Win32/networkSimulator_g192.exe"
                )
            elif system == "Linux":
                netsim_path = SCRIPTS_DIR.joinpath("tools/Linux/networkSimulator_g192")
            elif system == "Darwin":