[SciPy-Dev] scipy.special test failures for 0.8.0b1

Ralf Gommers ralf.gommers@googlemail....
Thu Jun 17 09:05:43 CDT 2010


These scipy.special test failures were reported by Derek Homeier for
0.8.0b1. Are these all just cases of the test precision being a little too
high, or is there an actual problem? What should be done with them for the
0.8.0 release?

Thanks,
Ralf



this test fails on MacOS X 10.5  darwin-ppc /w numpy 1.4.1 both in scipy
0.7.2 and 0.8.0b1:

FAIL: test_iv_cephes_vs_amos (test_basic.TestBessel)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/sw/lib/python2.6/site-packages/scipy/special/tests/test_basic.py",
line 1690, in test_iv_cephes_vs_amos
   self.check_cephes_vs_amos(iv, iv, rtol=1e-12, atol=1e-305)
 File "/sw/lib/python2.6/site-packages/scipy/special/tests/test_basic.py",
line 1671, in check_cephes_vs_amos
   assert_tol_equal(c1, c2, err_msg=(v, z), rtol=rtol, atol=atol)
 File "/sw/lib/python2.6/site-packages/scipy/special/tests/test_basic.py",
line 38, in assert_tol_equal
   verbose=verbose, header=header)
 File "/sw/lib/python2.6/site-packages/numpy/testing/utils.py", line 609, in
assert_array_compare
   raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-12, atol=1e-305
(-120, 700.60000000000002)
(mismatch 100.0%)
 x: array(9.7596849076267918e+297)
 y: array((9.7596849444884899e+297+0j))



while the following also fails on darwin-i386:

FAIL: test_iv_cephes_vs_amos_mass_test (test_basic.TestBessel)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/sw/lib/python2.6/site-packages/scipy/special/tests/test_basic.py",
line 1712, in test_iv_cephes_vs_amos_mass_test
   assert dc[k] < 1e-9, (iv(v[k], x[k]), iv(v[k], x[k]+0j))
AssertionError: (1.8320048963545875e+306, (inf+0j))



new in 0.8.0b1 / darwin-ppc:

FAIL: test_data.test_boost(<Data for gamma: test_gamma_data_ipp-near_m55>,)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/sw/lib/python2.6/site-packages/nose/case.py", line 186, in runTest
   self.test(*self.arg)
 File "/sw/lib/python2.6/site-packages/scipy/special/tests/test_data.py",
line 205, in _test_factory
   test.check(dtype=dtype)
 File "/sw/lib/python2.6/site-packages/scipy/special/tests/testutils.py",
line 187, in check
   assert False, "\n".join(msg)
AssertionError:
Max |adiff|: 5.56451e-80
Max |rdiff|: 6.01399e-12
Bad results for the following points (in output 0):
                       -55.25 =>          1.281342652143248e-73 !=
1.2813426521356121e-73  (rdiff         5.9592794108831318e-12)
                     -55.0625 =>         9.8673260749254454e-73 !=
9.8673260748719804e-73  (rdiff         5.4183854671083142e-12)
                   -55.015625 =>          4.736069454765531e-72 !=
4.7360694547400013e-72  (rdiff         5.3904770710359471e-12)
                -55.001953125 =>         4.0011527026054843e-71 !=
4.0011527025839184e-71  (rdiff         5.3899101047365405e-12)
               -55.0009765625 =>         8.0337165791763099e-71 !=
8.0337165791330061e-71  (rdiff          5.390260882973932e-12)
           -55.00006103515625 =>         1.2901278999535244e-69 !=
1.2901278999465708e-69  (rdiff         5.3898362867905277e-12)
          -55.000015258789062 =>         5.1614604487935911e-69 !=
5.1614604487657727e-69  (rdiff         5.3896432998251817e-12)
          -55.000007629394531 =>         1.0323237221382923e-68 !=
1.0323237221327282e-68  (rdiff         5.3898770611534905e-12)
          -54.999992370605469 =>        -1.0323869903952338e-68 !=
-1.0323869903896693e-68  (rdiff         5.3899456366789772e-12)
          -54.999969482421875 =>        -2.5812047538146166e-69 !=
-2.5812047538007038e-69  (rdiff         5.3900484385549852e-12)
             -54.999755859375 =>         -3.229275765714629e-70 !=
-3.2292757656972238e-70  (rdiff         5.3898088494869903e-12)
              -54.99951171875 =>        -1.6162223904478387e-70 !=
-1.6162223904391274e-70  (rdiff         5.3898993756420872e-12)
                -54.998046875 =>        -4.0644220032500644e-71 !=
-4.0644220032281559e-71  (rdiff         5.3903083062977191e-12)
                  -54.9921875 =>        -1.0403990765960148e-71 !=
-1.040399076590406e-71  (rdiff          5.391034204122906e-12)
                   -54.984375 =>        -5.3694203178537616e-72 !=
-5.3694203178248015e-72  (rdiff         5.3935130122571759e-12)
                     -54.9375 =>        -1.6301847489550233e-72 !=
-1.6301847489461702e-72  (rdiff         5.4307621029371105e-12)
                      -54.875 =>        -1.0680846658730133e-72 !=
-1.0680846658670925e-72  (rdiff         5.5434016349406124e-12)
                      -54.875 =>        -1.0680846658730133e-72 !=
-1.0680846658670925e-72  (rdiff         5.5434016349406124e-12)
                       -54.75 =>        -9.5458361856825864e-73 !=
-9.5458361856251778e-73  (rdiff          6.013992626968188e-12)
                      -54.625 =>        -1.2061864756549609e-72 !=
-1.2061864756493961e-72  (rdiff         4.6135414163673135e-12)



======================================================================
FAIL: test_data.test_boost(<Data for gammaincinv:
gamma_inv_big_data_ipp-gamma_inv_big_data>,)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/sw/lib/python2.6/site-packages/nose/case.py", line 186, in runTest
   self.test(*self.arg)
 File "/sw/lib/python2.6/site-packages/scipy/special/tests/test_data.py",
line 205, in _test_factory
   test.check(dtype=dtype)
 File "/sw/lib/python2.6/site-packages/scipy/special/tests/testutils.py",
line 187, in check
   assert False, "\n".join(msg)
AssertionError:
Max |adiff|: 39782.8
Max |rdiff|: 1
Bad results for the following points (in output 0):
                  40010.84375             0.12698681652545929
=>                            0.0 !=             39782.764004009827
(rdiff                            1.0)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-dev/attachments/20100617/b8360bd5/attachment.html 


More information about the SciPy-Dev mailing list