From: Paul Brossier Date: Wed, 11 May 2016 09:00:22 +0000 (+0200) Subject: python/tests/test_fvec.py: cope with accumulated errors X-Git-Tag: 0.4.4~300^2~73 X-Git-Url: https://git.aubio.org/?p=aubio.git;a=commitdiff_plain;h=44312de69a25c21d2ef48471ff7f09c1c1ce18c6 python/tests/test_fvec.py: cope with accumulated errors --- diff --git a/python/tests/test_fvec.py b/python/tests/test_fvec.py index 99984f48..48b89ee2 100755 --- a/python/tests/test_fvec.py +++ b/python/tests/test_fvec.py @@ -97,7 +97,7 @@ class aubio_alpha_norm(TestCase): x = np.random.rand(1024).astype(float_type) alpha = np.random.rand() * 5. x_alpha_norm = (np.sum(np.abs(x)**alpha)/len(x))**(1/alpha) - assert_almost_equal(alpha_norm(x, alpha), x_alpha_norm) + assert_almost_equal(alpha_norm(x, alpha), x_alpha_norm, decimal = 5) class aubio_zero_crossing_rate_test(TestCase):