Commit 2e98dff7 authored by Jan Kiene's avatar Jan Kiene
Browse files

fix for renderer tests

when removing renderer_short/, this change was overlooked
it only affectes BASOP ci, so float pipeline did not reveal
parent bf099a48
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -31,7 +31,6 @@ the United Nations Convention on Contracts on the International Sales of Goods.
"""

import errno
import filecmp
import logging
import os
import re
@@ -504,6 +503,7 @@ def compare_renderer_args(
    ref_kwargs: Dict,
    cut_kwargs: Dict,
    split_comparison=False,
    atol=2,
):
    out_file_ref = run_renderer(
        record_property,
@@ -525,7 +525,9 @@ def compare_renderer_args(
        split_comparison=split_comparison,
    )
    cut, cut_fs = readfile(out_file_cut)
    [diff_found, snr, gain_b, max_diff] = check_BE(test_info, ref, ref_fs, cut, cut_fs)
    [diff_found, snr, gain_b, max_diff] = check_BE(
        test_info, ref, ref_fs, cut, cut_fs, atol
    )
    if diff_found:
        pytest.fail(
            f"CuT not BE to REF! SNR : {snr:3.2f} dB, Gain CuT: {gain_b:1.3f}, Max Diff = {int(max_diff)}"