diff options
Diffstat (limited to 'debian/patches/alpha_norm-88c89e3.diff')
-rw-r--r-- | debian/patches/alpha_norm-88c89e3.diff | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/alpha_norm-88c89e3.diff b/debian/patches/alpha_norm-88c89e3.diff new file mode 100644 index 0000000..bb2fea3 --- /dev/null +++ b/debian/patches/alpha_norm-88c89e3.diff @@ -0,0 +1,19 @@ +commit 88c89e3b2981c430d61079c9517fa37407ba2f58 +Author: Paul Brossier <piem@piem.org> +Date: Thu Sep 22 13:46:16 2016 +0200 + + 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 4ea5533..4e50f0f 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): + |