From: Paul Brossier Date: Thu, 22 Sep 2016 11:46:16 +0000 (+0200) Subject: python/tests/test_fvec.py: reduce alpha norm precision to 10.-4 X-Git-Tag: 0.4.4~215 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=88c89e3b2981c430d61079c9517fa37407ba2f58;p=aubio.git python/tests/test_fvec.py: reduce alpha norm precision to 10.-4 --- diff --git a/python/tests/test_fvec.py b/python/tests/test_fvec.py index 4ea55332..4e50f0f0 100755 --- a/python/tests/test_fvec.py +++ b/python/tests/test_fvec.py @@ -98,7 +98,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, decimal = 5) + assert_almost_equal(alpha_norm(x, alpha), x_alpha_norm, decimal = 4) class aubio_zero_crossing_rate_test(TestCase):