Problems with test_fitpack.py fitpack2.py
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 ====================================================================== 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 Nils
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
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
wagner@lisa:~> f2py -v 2.35.229-1505 Nils
_______________________________________________ Scipy-dev mailing list Scipy-dev@scipy.net http://www.scipy.net/mailman/listinfo/scipy-dev
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@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
------------------- 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@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@scipy.net http://www.scipy.net/mailman/listinfo/scipy-dev
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@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>
On Thu, 20 Nov 2003, Nils Wagner wrote:
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 ?
Indeed, this is Python 2.1 issue. (And has nothing to do with djbfft). Pearu
Pearu Peterson schrieb:
On Thu, 20 Nov 2003, Nils Wagner wrote:
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 ?
Indeed, this is Python 2.1 issue. (And has nothing to do with djbfft).
So, is it planned to hold scipy backward compatible with respect to python 2.x ? Nils
Pearu
_______________________________________________ Scipy-dev mailing list Scipy-dev@scipy.net http://www.scipy.net/mailman/listinfo/scipy-dev
On Thu, 20 Nov 2003, Nils Wagner wrote:
So, is it planned to hold scipy backward compatible with respect to python 2.x ?
Yes, as much as possible down to Python 2.1. 2.0 support has been dropped long time ago. I think we should consider dropping also 2.1 support starting scipy-0.3.x. Pearu
participants (4)
-
Nils Wagner -
Nils Wagner -
Pearu Peterson -
Pearu Peterson