From: Paul Brossier Date: Mon, 18 Mar 2013 15:52:43 +0000 (-0500) Subject: python/tests/test_specdesc.py: update to latest specdesc.c X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8e9cb57943fd56c7270308df786b6e1e48e49fb2;p=aubio.git python/tests/test_specdesc.py: update to latest specdesc.c --- 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")