From 8e9cb57943fd56c7270308df786b6e1e48e49fb2 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 18 Mar 2013 10:52:43 -0500 Subject: [PATCH] python/tests/test_specdesc.py: update to latest specdesc.c --- python/tests/test_specdesc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/tests/test_specdesc.py b/python/tests/test_specdesc.py index 675858d2..4ec98306 100755 --- a/python/tests/test_specdesc.py +++ b/python/tests/test_specdesc.py @@ -103,7 +103,7 @@ class aubio_specdesc(TestCase): assert_equal( 0., o(c)) a = arange(c.length, dtype='float32') c.norm = a - assert_almost_equal( sum(a * log(1.+ a/1.e-10 ) ) / o(c), 1., decimal=6) + assert_almost_equal( sum(a * log(1.+ a/1.e-1 ) ) / o(c), 1., decimal=6) def test_mkl(self): o = specdesc("mkl") @@ -111,7 +111,7 @@ class aubio_specdesc(TestCase): assert_equal( 0., o(c)) a = arange(c.length, dtype='float32') c.norm = a - assert_almost_equal( sum(log(1.+ a/1.e-10 ) ) / o(c), 1, decimal=6) + assert_almost_equal( sum(log(1.+ a/1.e-1 ) ) / o(c), 1, decimal=6) def test_specflux(self): o = specdesc("specflux") -- 2.26.2