[SciPy-dev] FAIL: test_yn_zeros, test_ynp_zeros, Negative-order Bessels

Nils Wagner nwagner@iam.uni-stuttgart...
Mon Jan 26 04:27:30 CST 2009


On Mon, 26 Jan 2009 09:31:31 +0000 (UTC)
  Pauli Virtanen <pav@iki.fi> wrote:
> Sun, 25 Jan 2009 20:25:16 +0100, Nils Wagner wrote:
> [clip]
>>>>> scipy.__version__
>> '0.8.0.dev5524'
>> ======================================================================
>> FAIL: test_yv_cephes_vs_amos (test_basic.TestBessel)
>> ----------------------------------------------------------------------
> [clip]
>> Traceback (most recent call last):
>>    File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/special/tests/
> test_basic.py",
>> line 1650, in test_yv_cephes_vs_amos
>>      self.check_cephes_vs_amos(yv, yn, rtol=1e-11,
>> atol=1e-305)
>>    File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/special/tests/
> test_basic.py",
>> line 1640, in check_cephes_vs_amos
>>      assert c2.imag != 0, (v, z)
>> AssertionError: (301, 1.0)
> 
> This should have been fixed in r5524. Note that you need 
>to
> 
> 	touch scipy/special/_cephesmodule.c
> 
Done, but the failure persists.

> before rebuilding, to make sure that 
>scipy.special._cephes module is 
> rebuilt. The build system apparently does not track 
>dependencies properly 
> here.
> 
> -- 
> Pauli Virtanen

I am using 64-bit linux CentOS release 4.6 (Final).

Python 2.5.1 (r251:54863, Dec 21 2007, 09:21:07)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more 
information.
>>> import  scipy.special
>>> scipy.special.test()
Running unit tests for scipy.special
NumPy version 1.3.0.dev6333
NumPy is installed in 
/data/home/nwagner/local/lib/python2.5/site-packages/numpy
SciPy version 0.8.0.dev5525
SciPy is installed in 
/data/home/nwagner/local/lib/python2.5/site-packages/scipy
Python version 2.5.1 (r251:54863, Dec 21 2007, 09:21:07) 
[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)]
nose version 0.10.4
.................F........................................FF.F...........................................................................................................................................................................................................................................................................................................
======================================================================
FAIL: test_iv_cephes_vs_amos (test_basic.TestBessel)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/scipy/special/tests/test_basic.py", 
line 1653, in test_iv_cephes_vs_amos
     self.check_cephes_vs_amos(iv, iv, rtol=1e-8, 
atol=1e-305)
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/scipy/special/tests/test_basic.py", 
line 1642, in check_cephes_vs_amos
     assert_tol_equal(c1, c2, err_msg=(v, z), rtol=rtol, 
atol=atol)
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/scipy/special/tests/test_basic.py", 
line 38, in assert_tol_equal
     verbose=verbose, header=header)
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/numpy/testing/utils.py", 
line 295, in assert_array_compare
     raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-08, atol=1e-305
(-120, -11)
(mismatch 100.0%)
  x: array(1.3384173609003782e-110)
  y: array((1.3384173859242368e-110+0j))

======================================================================
FAIL: test_yn_zeros (test_basic.TestBessel)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/scipy/special/tests/test_basic.py", 
line 1598, in test_yn_zeros
     488.98055964441374646], rtol=1e-19)
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/scipy/special/tests/test_basic.py", 
line 38, in assert_tol_equal
     verbose=verbose, header=header)
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/numpy/testing/utils.py", 
line 295, in assert_array_compare
     raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-19, atol=0

(mismatch 100.0%)
  x: array([ 450.13573091,  463.05692375,  472.80651543, 
 481.27353185,
         488.9805596 ])
  y: array([ 450.13573092,  463.05692377,  472.80651546, 
 481.27353185,
         488.98055964])

======================================================================
FAIL: test_ynp_zeros (test_basic.TestBessel)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/scipy/special/tests/test_basic.py", 
line 1604, in test_ynp_zeros
     assert_tol_equal(yvp(443, ao), 0, atol=1e-15)
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/scipy/special/tests/test_basic.py", 
line 38, in assert_tol_equal
     verbose=verbose, header=header)
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/numpy/testing/utils.py", 
line 295, in assert_array_compare
     raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-07, atol=1e-15

(mismatch 100.0%)
  x: array([  1.23909633e-10,  -8.11850587e-16, 
  3.60822483e-16,
          5.89805982e-16,   1.22644950e-15])
  y: array(0)

======================================================================
FAIL: test_yv_cephes_vs_amos (test_basic.TestBessel)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/scipy/special/tests/test_basic.py", 
line 1650, in test_yv_cephes_vs_amos
     self.check_cephes_vs_amos(yv, yn, rtol=1e-11, 
atol=1e-305)
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/scipy/special/tests/test_basic.py", 
line 1640, in check_cephes_vs_amos
     assert c2.imag != 0, (v, z)
AssertionError: (301, 1.0)

----------------------------------------------------------------------
Ran 361 tests in 0.782s

FAILED (failures=4)
<nose.result.TextTestResult run=361 errors=0 failures=4>
>>> scipy.__version__
'0.8.0.dev5525'
  
Nils


More information about the Scipy-dev mailing list