From: Paul Brossier Date: Sat, 15 Sep 2018 14:50:43 +0000 (+0200) Subject: python/tests/test_dct.py: reduce precision for dct ramp X-Git-Tag: 0.4.7~21^2 X-Git-Url: https://git.aubio.org/?p=aubio.git;a=commitdiff_plain;h=3cb2a52afc6c3cd85b1fdcb9dddbd128edfb9f15 python/tests/test_dct.py: reduce precision for dct ramp --- diff --git a/python/tests/test_dct.py b/python/tests/test_dct.py index fbcbde87..0c990f9f 100755 --- a/python/tests/test_dct.py +++ b/python/tests/test_dct.py @@ -31,7 +31,7 @@ class aubio_dct(TestCase): a_dct = aubio.dct(8) a_in = np.arange(8).astype(aubio.float_type) a_expected = aubio.fvec(precomputed_arange) - assert_almost_equal(a_dct(a_in), a_expected, decimal=6) + assert_almost_equal(a_dct(a_in), a_expected, decimal=5) def test_some_ones(self): """ test that dct(somevector) is computed correctly """