[SciPy-dev] test results

Darren Dale dd55 at cornell.edu
Tue Oct 25 10:31:06 CDT 2005


I just updated from svn, and get the following message when I import:

from scipy import *
Importing io to scipy
Importing special to scipy
Importing fftpack to scipy
Importing cluster to scipy
Importing sparse to scipy
Importing signal to scipy
Failed to import signal
cannot import name comb
Importing utils to scipy
Importing interpolate to scipy
Importing integrate to scipy
Importing optimize to scipy
Importing linalg to scipy

Here are my test results. My system is a P4, gentoo linux with fftw-2.1.5, 
blas/lapack/atlas version 3.6, and gcc-3.4.4.

The last three errors are caused by signbit returning False for any number on 
my system, positive or negative. I have tested the libc signbit macro and it 
is working properly, though my example has to be compiled with ANSI C to gain 
access to the macro. Others here have not been able to reproduce this signbit 
error, and I am unsure how to proceed.

Darren

======================================================================
ERROR: check_definition 
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_diff)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 88, in check_definition
    assert_array_almost_equal(diff(sin(x)),direct_diff(sin(x)))
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/pseudo_diffs.py", line 
48, in diff
    if tmp.dtype in (scipy.Complex32, scipy.Complex64):
NameError: global name 'scipy' is not defined

======================================================================
ERROR: check_expr (scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_diff)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-pakages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 131, in check_expr
    d1 = diff(f)
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/pseudo_diffs.py", line 
48, in diff
    if tmp.dtype in (scipy.Complex32, scipy.Complex64):
NameError: global name 'scipy' is not defined

======================================================================
ERROR: check_expr_large 
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_diff)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 145, in check_expr_large
    assert_array_almost_equal(diff(f),df)
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/pseudo_diffs.py", line 
48, in diff
    if tmp.dtype in (scipy.Complex32, scipy.Complex64):
NameError: global name 'scipy' is not defined

======================================================================
ERROR: check_int (scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_diff)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 153, in check_int
    assert_array_almost_equal(diff(sin(x),-1),-cos(x))
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/pseudo_diffs.py", line 
48, in diff
    if tmp.dtype in (scipy.Complex32, scipy.Complex64):
NameError: global name 'scipy' is not defined

======================================================================
ERROR: check_period (scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_diff)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 109, in check_period
    assert_array_almost_equal(diff(sin(2*pi*x),period=1),
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/pseudo_diffs.py", line 
48, in diff
    if tmp.dtype in (scipy.Complex32, scipy.Complex64):
NameError: global name 'scipy' is not defined

======================================================================
ERROR: check_random_even 
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_diff)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 165, in check_random_even
    f = diff(diff(f,1),-1)
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/pseudo_diffs.py", line 
48, in diff
    if tmp.dtype in (scipy.Complex32, scipy.Complex64):
NameError: global name 'scipy' is not defined

======================================================================
ERROR: check_random_odd 
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_diff)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 177, in check_random_odd
    assert_array_almost_equal(diff(diff(f,k),-k),f)
  File "/usr/lib/python2.4/site-packages/scipy_test/testing.py", line 675, in 
assert_array_almost_equal
    reduced = 
ravel(equal(less_equal(around(abs(x-y),decimal),10.0**(-decimal)),1))
TypeError: unsupported operand type(s) for -: 'str' and 'float'

======================================================================
ERROR: check_sin (scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_diff)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 117, in check_sin
    assert_array_almost_equal(diff(sin(x)),cos(x))
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/pseudo_diffs.py", line 
48, in diff
    if tmp.dtype in (scipy.Complex32, scipy.Complex64):
NameError: global name 'scipy' is not defined

======================================================================
ERROR: check_zero_nyquist 
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_diff)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 187, in check_zero_nyquist
    f = diff(diff(f,1),-1)
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/pseudo_diffs.py", line 
48, in diff
    if tmp.dtype in (scipy.Complex32, scipy.Complex64):
NameError: global name 'scipy' is not defined

======================================================================
ERROR: check_definition 
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_hilbert)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 302, in check_definition
    y = hilbert(sin(x))
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/pseudo_diffs.py", line 
175, in hilbert
    if tmp.dtype in (scipy.Complex32, scipy.Complex64):
NameError: global name 'scipy' is not defined

======================================================================
ERROR: check_random_even 
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_hilbert)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 333, in check_random_even
    f = diff(diff(f,1),-1)
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/pseudo_diffs.py", line 
48, in diff
    if tmp.dtype in (scipy.Complex32, scipy.Complex64):
NameError: global name 'scipy' is not defined

======================================================================
ERROR: check_random_odd 
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_hilbert)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 324, in check_random_odd
    assert_array_almost_equal(ihilbert(hilbert(f)),f)
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/pseudo_diffs.py", line 
175, in hilbert
    if tmp.dtype in (scipy.Complex32, scipy.Complex64):
NameError: global name 'scipy' is not defined

======================================================================
ERROR: check_tilbert_relation 
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_hilbert)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 312, in check_tilbert_relation
    y = hilbert(f)
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/pseudo_diffs.py", line 
175, in hilbert
    if tmp.dtype in (scipy.Complex32, scipy.Complex64):
NameError: global name 'scipy' is not defined

======================================================================
ERROR: check_definition 
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_ihilbert)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 371, in check_definition
    y = ihilbert(sin(x))
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/pseudo_diffs.py", line 
204, in ihilbert
    return -hilbert(x)
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/pseudo_diffs.py", line 
175, in hilbert
    if tmp.dtype in (scipy.Complex32, scipy.Complex64):
NameError: global name 'scipy' is not defined

======================================================================
ERROR: check_itilbert_relation 
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_ihilbert)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 381, in check_itilbert_relation
    y = ihilbert(f)
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/pseudo_diffs.py", line 
204, in ihilbert
    return -hilbert(x)
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/pseudo_diffs.py", line 
175, in hilbert
    if tmp.dtype in (scipy.Complex32, scipy.Complex64):
NameError: global name 'scipy' is not defined

======================================================================
ERROR: check_definition 
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_itilbert)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 289, in check_definition
    y = itilbert(sin(x),h)
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/pseudo_diffs.py", line 
136, in itilbert
    if tmp.dtype in (scipy.Complex32, scipy.Complex64):
NameError: global name 'scipy' is not defined

======================================================================
ERROR: check_definition 
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_shift)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 393, in check_definition
    assert_array_almost_equal(shift(sin(x),a),direct_shift(sin(x),a))
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/pseudo_diffs.py", line 
404, in shift
    if tmp.dtype in (scipy.Complex32, scipy.Complex64):
NameError: global name 'scipy' is not defined

======================================================================
ERROR: check_definition 
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_tilbert)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 228, in check_definition
    y = tilbert(sin(x),h)
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/pseudo_diffs.py", line 
100, in tilbert
    if tmp.dtype in (scipy.Complex32, scipy.Complex64):
NameError: global name 'scipy' is not defined

======================================================================
ERROR: check_random_even 
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_tilbert)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 243, in check_random_even
    assert_array_almost_equal(direct_tilbert(direct_itilbert(f,h),h),f)
  File 
"/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 61, in direct_itilbert
    w = 1j*tanh(w)
AttributeError: 'float64_arrtype' object has no attribute 'tanh'

======================================================================
ERROR: check_random_odd 
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_tilbert)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py", 
line 252, in check_random_odd
    assert_array_almost_equal(itilbert(tilbert(f,h),h),f)
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/pseudo_diffs.py", line 
100, in tilbert
    if tmp.dtype in (scipy.Complex32, scipy.Complex64):
NameError: global name 'scipy' is not defined

======================================================================
ERROR: check_djbfft (scipy.fftpack.basic.test_basic.test_irfft)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_basic.py", 
line 361, in check_djbfft
    y1 = ifft2(x1)
  File "/usr/lib/python2.4/site-packages/Numeric/FFT/FFT.py", line 102, in 
inverse_fft
    a = Numeric.asarray(a).astype(Numeric.Complex)
  File "/usr/lib/python2.4/site-packages/Numeric/Numeric.py", line 134, in 
asarray
    return multiarray.array(a, typecode, copy=0, savespace=savespace)
TypeError: only length-1 arrays can be converted to Python scalars

======================================================================
FAIL: check_definition (scipy.fftpack.basic.test_basic.test_fft)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_basic.py", 
line 101, in check_definition
    assert_array_almost_equal(y,y1)
  File "/usr/lib/python2.4/site-packages/scipy/test/testing.py", line 727, in 
assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
        Array 1: [  2.0000000e+01 +0.0000000e+00j   0.0000000e+00 
+0.0000000e+00j
  -4.0000000e+00 +4.0000000e+00j   0.0000000e+00 +0.000...
        Array 2: [ 20.       +3.j         -0.7071068+0.7071068j  -7.       
+4.j
  -0.7071068-0.7071068j  -4.       -3.j          0.707106...


======================================================================
FAIL: check_n_argument_complex (scipy.fftpack.basic.test_basic.test_fft)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_basic.py", 
line 118, in check_n_argument_complex
    assert_array_almost_equal(y[0],direct_dft(x1))
  File "/usr/lib/python2.4/site-packages/scipy/test/testing.py", line 727, in 
assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
        Array 1: [  1.0000000e+01+0.j  -2.0000000e+00+2.j  -2.0000000e+00+0.j
  -2.0000000e+00-2.j]
        Array 2: [ 10.+1.j  -3.+2.j  -2.-1.j  -1.-2.j]


======================================================================
FAIL: check_definition (scipy.fftpack.basic.test_basic.test_fftn)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_basic.py", 
line 419, in check_definition
    assert_array_almost_equal(y,direct_dftn(x))
  File "/usr/lib/python2.4/site-packages/scipy/test/testing.py", line 727, in 
assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 22.2222222222%):
        Array 1: [[  4.5000000e+01+0.j         -4.5000000e+00+2.5980762j
   -4.5000000e+00-2.5980762j]
 [ -1.3500000e+01+7.7942286j   0.0...
        Array 2: [[  4.5000000e+01+0.j         -4.5000000e+00+2.5980762j
   -4.5000000e+00-2.5980762j]
 [ -1.3500000e+01+0.j          0.0...


======================================================================
FAIL: check_definition (scipy.fftpack.basic.test_basic.test_ifft)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_basic.py", 
line 184, in check_definition
    assert_array_almost_equal(y,y1)
  File "/usr/lib/python2.4/site-packages/scipy/test/testing.py", line 727, in 
assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
        Array 1: [  2.5000000e+00 +0.0000000e+00j   0.0000000e+00 
-0.0000000e+00j
  -5.0000000e-01 -5.0000000e-01j   0.0000000e+00 -0.000...
        Array 2: [ 2.5      +0.375j      0.0883883+0.0883883j -0.125    -0.5j
  0.0883883-0.0883883j -0.5      -0.375j     -0.0883883-0.0...


======================================================================
FAIL: check_random_real (scipy.fftpack.basic.test_basic.test_ifft)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_basic.py", 
line 218, in check_random_real
    assert_array_almost_equal (ifft(fft(x)),x)
  File "/usr/lib/python2.4/site-packages/scipy/test/testing.py", line 727, in 
assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 98.0392156863%):
        Array 1: [  2.7010335e-01 +0.0000000e+00j   1.5051924e-01 
+1.9549653e-17j
   3.9770871e-01 -4.2662293e-17j   5.5451658e-01 -5.476...
        Array 2: [ 0.2701033  0.0145507  0.5296276  0.2231588  0.6244757  
0.1734576
  0.4209751  0.6859024  0.888794   0.3217651  0.42293...


======================================================================
FAIL: check_definition (scipy.fftpack.basic.test_basic.test_ifftn)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_basic.py", 
line 586, in check_definition
    assert_array_almost_equal(y,direct_idftn(x))
  File "/usr/lib/python2.4/site-packages/scipy/test/testing.py", line 727, in 
assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 22.2222222222%):
        Array 1: [[  5.0000000e+00+0.j         -5.0000000e-01-0.2886751j
   -5.0000000e-01+0.2886751j]
 [ -1.5000000e+00-0.8660254j   0.0...
        Array 2: [[  5.0000000e+00+0.j         -5.0000000e-01-0.2886751j
   -5.0000000e-01+0.2886751j]
 [ -1.5000000e+00+0.j          0.0...


======================================================================
FAIL: check_definition (scipy.fftpack.basic.test_basic.test_irfft)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/scipy/fftpack/tests/test_basic.py", 
line 338, in check_definition
    assert_array_almost_equal(y,ifft(x1))
  File "/usr/lib/python2.4/site-packages/scipy/test/testing.py", line 727, in 
assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 50.0%):
        Array 1: [ 2.625     -1.6856602 -0.375     -1.1856602  0.625      
0.4356602 -0.375
  0.9356602]
        Array 2: [  2.6250000e+00+0.j  -3.7500000e-01-0.j  -3.7500000e-01-0.j
  -3.7500000e-01-0.j   6.2500000e-01+0.j  -3.7500000e-01+0....


======================================================================
FAIL: check_generic (scipy.base.type_check.test_type_check.test_isneginf)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py", 
line 193, in check_generic
    assert(vals[0] == 1)
AssertionError

======================================================================
FAIL: check_generic (scipy.base.type_check.test_type_check.test_isposinf)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py", 
line 186, in check_generic
    assert(vals[0] == 0)
AssertionError

======================================================================
FAIL: check_generic (scipy.base.type_check.test_type_check.test_nan_to_num)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py", 
line 200, in check_generic
    assert_all(vals[0] < -1e10) and assert_all(isfinite(vals[0]))
  File "/usr/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py", 
line 12, in assert_all
    assert(all(x)), x
AssertionError: False

----------------------------------------------------------------------
Ran 550 tests in 1.718s

FAILED (failures=10, errors=21)




More information about the Scipy-dev mailing list