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

Nils Wagner nwagner at mecha.uni-stuttgart.de
Thu Nov 20 04:42:53 CST 2003


Pearu Peterson schrieb:
> 
> On Thu, 20 Nov 2003, Nils Wagner wrote:
> 
> > Dear experts,
> >
> > 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
> 
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-dev

I have upgraded to the latest tarball of f2py.
However, scipy.test() results in the following errors

Is this behaviour connected with the python version or djbfft ?

Nils

======================================================================
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
======================================================================
ERROR: check_linear_1d
(scipy.interpolate.fitpack.test_fitpack.test_SmoothBivariateSpline)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.1/site-packages/scipy/interpolate/tests/test_fitpack.py",
line 72, in check_linear_1d
    lut = SmoothBivariateSpline(x,y,z,kx=1,ky=1)
  File
"/usr/local/lib/python2.1/site-packages/scipy/interpolate/fitpack2.py",
line 356, in __init__
    kx,ky,s=s,eps=eps,lwrk2=1)
error: (len(y)==m) failed for 3rd argument z
======================================================================
ERROR: check_linear_constant
(scipy.interpolate.fitpack.test_fitpack.test_SmoothBivariateSpline)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.1/site-packages/scipy/interpolate/tests/test_fitpack.py",
line 62, in check_linear_constant
    lut = SmoothBivariateSpline(x,y,z,kx=1,ky=1)
  File
"/usr/local/lib/python2.1/site-packages/scipy/interpolate/fitpack2.py",
line 356, in __init__
    kx,ky,s=s,eps=eps,lwrk2=1)
error: (len(y)==m) failed for 3rd argument z
======================================================================
FAIL: check_pro_ang1_cv (scipy.special.cephes.test_cephes.test_cephes)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.1/site-packages/scipy/special/tests/test_cephes.py",
line 355, in check_pro_ang1_cv
    assert_equal(cephes.pro_ang1_cv(1,1,1,1,0),(1.0,0.0))
  File "/usr/local/lib/python2.1/site-packages/scipy_test/testing.py",
line 519, in assert_equal
    assert desired == actual, msg
AssertionError:
Items are not equal:
DESIRED: (1.0, 0.0)
ACTUAL: (0.99999999999999989, 0.0)
======================================================================
FAIL: check_pro_ang1_cv (scipy.special.basic.test_basic.test_cephes)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.1/site-packages/scipy/special/tests/test_basic.py",
line 384, in check_pro_ang1_cv
    assert_equal(cephes.pro_ang1_cv(1,1,1,1,0),(1.0,0.0))
  File "/usr/local/lib/python2.1/site-packages/scipy_test/testing.py",
line 519, in assert_equal
    assert desired == actual, msg
AssertionError:
Items are not equal:
DESIRED: (1.0, 0.0)
ACTUAL: (0.99999999999999989, 0.0)
======================================================================
FAIL: check_sph_in (scipy.special.basic.test_basic.test_sph_in)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.1/site-packages/scipy/special/tests/test_basic.py",
line 1941, in check_sph_in
    0.066933714568029540839]),12)
  File "/usr/local/lib/python2.1/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_sph_kn (scipy.special.basic.test_basic.test_sph_kn)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.1/site-packages/scipy/special/tests/test_basic.py",
line 1979, in check_sph_kn
    585.15696310385559829],12)
  File "/usr/local/lib/python2.1/site-packages/scipy_test/testing.py",
line 592, in assert_array_almost_equal
    assert alltrue(ravel(reduced)),\
AssertionError:
Arrays are not almost equal:

----------------------------------------------------------------------
Ran 959 tests in 7.401s

FAILED (failures=4, errors=3)
<unittest.TextTestRunner instance at 0x8b8fbcc>


More information about the Scipy-dev mailing list