Loading tests/renderer/utils.py +1 −1 Original line number Diff line number Diff line Loading @@ -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)}" Loading Loading
tests/renderer/utils.py +1 −1 Original line number Diff line number Diff line Loading @@ -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)}" Loading