ref: 8e9cb57943fd56c7270308df786b6e1e48e49fb2
parent: 78a42e2c24fc1c562ac95cd11deb213288b759db
author: Paul Brossier <piem@piem.org>
date: Mon Mar 18 06:52:43 EDT 2013
python/tests/test_specdesc.py: update to latest specdesc.c
--- a/python/tests/test_specdesc.py
+++ b/python/tests/test_specdesc.py
@@ -103,7 +103,7 @@
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 @@
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")