[SciPy-dev] Problems with test_fitpack.py fitpack2.py

Nils Wagner wagner.nils at vdi.de
Tue Nov 25 04:56:19 CST 2003


------------------- 
 
On Thu, 20 Nov 2003, Nils Wagner wrote: 
 
> Pearu Peterson schrieb: 
> >  
> > On Thu, 20 Nov 2003, Nils Wagner wrote: 
> > > What is the reason for the following errors ? 
> > > 
> > > 
> > > 
===================================================================== 
> > > ERROR: check_linear_constant 
> > > (scipy.interpolate.fitpack.test_fitpack.test_LSQBivariateSpline) 
> > > ---------------------------------------------------------------------- 
> > > Traceback (most recent call last): 
> > >   File 
> > > "/usr/local/lib/python2.1/site-packages/scipy/interpolate/tests/
test_fitpack.py", 
> > > line 52, in check_linear_constant 
> > >     lut = LSQBivariateSpline(x,y,z,tx,ty,kx=1,ky=1) 
> > >   File 
> > > "/usr/local/lib/python2.1/site-packages/scipy/interpolate/fitpack2.py", 
> > > line 399, in __init__ 
> > >     kx,ky,eps,lwrk2=1) 
> > > error: (len(y)==m) failed for 3rd argument z 
> >  
> > What is f2py version? You'll need f2py which supports usercode 
> > statement, that is, f2py 2.35.229-1505 or (better) later. 
> >  
> > Pearu 
> >  
>  
> wagner at lisa:~> f2py -v 
> 2.35.229-1505 
 
I just checked, the same error occurs also with the latest f2py 
but only with Python <=2.1. I'll see later if I can make a backport 
to Python 2.1... 
 
Pearu 
 
 
Actually, the problem is connected with  
___________________====================================================================== 
FAIL: check_random_complex (scipy.linalg.decomp.test_decomp.test_cholesky) 
---------------------------------------------------------------------- 
Traceback (most recent call last): 
  File "/usr/local/lib/python2.3/site-packages/scipy/linalg/tests/test_decomp.py", 
line 276, in check_random_complex 
    assert_array_almost_equal(cholesky(a),c) 
  File "/usr/local/lib/python2.3/site-packages/scipy_test/testing.py", line 592, in 
assert_array_almost_equal 
    assert alltrue(ravel(reduced)),\ 
AssertionError: 
Arrays are not almost equal: 
 
 
====================================================================== 
FAIL: check_simple_complex (scipy.linalg.decomp.test_decomp.test_cholesky) 
---------------------------------------------------------------------- 
Traceback (most recent call last): 
  File "/usr/local/lib/python2.3/site-packages/scipy/linalg/tests/test_decomp.py", 
line 250, in check_simple_complex 
    assert_array_almost_equal(cholesky(a),c) 
  File "/usr/local/lib/python2.3/site-packages/scipy_test/testing.py", line 592, in 
assert_array_almost_equal 
    assert alltrue(ravel(reduced)),\ 
AssertionError: 
Arrays are not almost equal: 
 
 
Any idea ? 
 
                  Nils 
 
____________________________ 
 
Scipy-dev mailing list 
Scipy-dev at scipy.net 
http://www.scipy.net/mailman/listinfo/scipy-dev 
 


More information about the Scipy-dev mailing list