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

fix abs tol in checkBE

parent 7da50c40
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ def check_BE(
        cut = np.pad(cut, [(0, ref.shape[0] - cut.shape[0]), (0, 0)])

    # check max_diff as well, since compare_audio_arrays will try to adjust for small delay differences
    diff_found = not np.allclose(ref, cut, rtol=0, atol=atol)
    diff_found = not np.allclose(ref, cut, rtol=0, atol=atol) and max_diff > atol
    if diff_found and not xfail:
        pytest.fail(
            f"CuT not BE to REF! SNR : {snr:3.2f} dB, Gain CuT: {gain_b:1.3f}, Max Diff = {int(max_diff)}"