From 88c89e3b2981c430d61079c9517fa37407ba2f58 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 22 Sep 2016 13:46:16 +0200 Subject: [PATCH] python/tests/test_fvec.py: reduce alpha norm precision to 10.-4 --- python/tests/test_fvec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.11.0