Commit 6256c1da authored by norvell's avatar norvell
Browse files

Fix in diff_report.py

parent 4bfe20d6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ def main(args):
    df_test = pd.read_csv(args.csv_test, sep=";")

    for col in COLUMNS_TO_COMPARE:
        df_ref[col] = df_ref[col] - df_test[col]
        df_ref[col] = df_test[col] - df_ref[col]
    df_ref.to_csv(args.csv_diff, index=False, sep=";")
    return 0

+19 −28
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@ __doc__ = """
Execute tests specified via a parameter file.
"""

import errno
import filecmp
import os
import platform
@@ -444,13 +443,13 @@ def test_param_file_tests(
            tracefile_dec = ""

            # Find input format
            in_fmt = [
                (a, b)
                for (a, b) in INPUT_FMT
                if re.search(a, enc_opts)
            ][0][1]
            in_fmt = [(a, b) for (a, b) in INPUT_FMT if re.search(a, enc_opts)][0][1]

            record_property = dut_decoder_frontend.record_property if dut_decoder_frontend else ref_decoder_frontend.record_property
            record_property = (
                dut_decoder_frontend.record_property
                if dut_decoder_frontend
                else ref_decoder_frontend.record_property
            )

            (ref_output_file, dut_output_file) = binauralize_input_and_output(
                record_property,
@@ -857,11 +856,3 @@ def get_expected_md_files(ref_output_file, enc_opts, output_config):
            pass

    return md_files

def findstr(exp, s, one_element=True):
    result = [SCRIPTS_DIR.joinpath(x) for x in re.findall(exp, s)]
    if len(result) == 0:
        return None
    if one_element:
        return result[0]
    return result
 No newline at end of file