python/tests/test_specdesc.py: update to latest specdesc.c
authorPaul Brossier <piem@piem.org>
Mon, 18 Mar 2013 15:52:43 +0000 (10:52 -0500)
committerPaul Brossier <piem@piem.org>
Mon, 18 Mar 2013 15:52:43 +0000 (10:52 -0500)
python/tests/test_specdesc.py

index 675858d20e31af19c0d7689d82584e25595d2380..4ec983064e96f264af0126aab73fde1bd115bd01 100755 (executable)
@@ -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")