ref: 88c89e3b2981c430d61079c9517fa37407ba2f58
parent: fa5d8add56f38a464e156e98e0c23e4f2cc4b9c5
author: Paul Brossier <piem@piem.org>
date: Thu Sep 22 09:46:16 EDT 2016
python/tests/test_fvec.py: reduce alpha norm precision to 10.-4
--- a/python/tests/test_fvec.py
+++ b/python/tests/test_fvec.py
@@ -98,7 +98,7 @@
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):