[SciPy-user] scipy.basic to numpy

Christopher Fonnesbeck chris at trichech.us
Thu Jan 5 15:09:35 CST 2006


On Jan 5, 2006, at 4:03 PM, Travis Oliphant wrote:

> Please re-send any bug reports regarding fft on OSX.

Here is mine again, from earlier:

======================================================================
FAIL: bench_random  
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_diff)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy-0.4.4.1525-py2.4-macosx-10.4-ppc.egg/ 
scipy/fftpack/tests/test_pseudo_diffs.py", line 210, in bench_random
     assert_array_almost_equal(diff(f,1),direct_diff(f,1))
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/numpy-0.9.2.1826-py2.4-macosx-10.4-ppc.egg/ 
numpy/testing/utils.py", line 182, in assert_array_almost_equal
     assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 96.0%):
         Array 1: [  4.0000000e+00   4.4583823e+00   4.6585202e+00    
4.5314873e+00
    4.0154475e+00   3.0782890e+00   1.7457348e+00   1.22...
         Array 2: [  4.0000000e+00   3.9029585e+00   3.6083502e+00    
3.1083616e+00
    2.3987172e+00   1.4909128e+00   4.2567472e-01  -7.18...


======================================================================
FAIL: check_definition  
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_diff)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy-0.4.4.1525-py2.4-macosx-10.4-ppc.egg/ 
scipy/fftpack/tests/test_pseudo_diffs.py", line 86, in check_definition
     assert_array_almost_equal(diff(sin(x),2),direct_diff(sin(x),2))
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/numpy-0.9.2.1826-py2.4-macosx-10.4-ppc.egg/ 
numpy/testing/utils.py", line 182, in assert_array_almost_equal
     assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 87.5%):
         Array 1: [ -6.3519652e-15  -3.8268343e-01  -7.0710678e-01   
-9.2387953e-01
   -1.0000000e+00  -9.2387953e-01  -7.0710678e-01  -3.82...
         Array 2: [ -7.3854931e-15   6.5259351e-15  -2.4942634e-15   
-7.5636114e-17
    1.4745663e-15  -1.9133685e-15   2.2804788e-16   8.70...


======================================================================
FAIL: bench_random  
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_hilbert)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy-0.4.4.1525-py2.4-macosx-10.4-ppc.egg/ 
scipy/fftpack/tests/test_pseudo_diffs.py", line 356, in bench_random
     assert_array_almost_equal(hilbert(f),direct_hilbert(f))
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/numpy-0.9.2.1826-py2.4-macosx-10.4-ppc.egg/ 
numpy/testing/utils.py", line 182, in assert_array_almost_equal
     assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 96.0%):
         Array 1: [ -1.0865211e+00  -1.1538025e+00  -1.1519434e+00   
-1.0725580e+00
   -9.1204050e-01  -6.7405401e-01  -3.7184092e-01  -2.91...
         Array 2: [ -1.0865211e+00 +0.0000000e+00j  -1.0575653e+00  
-5.3966502e-17j
   -9.7152085e-01 -3.8615213e-17j  -8.3113061e-01 -1.544...


======================================================================
FAIL: check_random_even  
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_hilbert)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy-0.4.4.1525-py2.4-macosx-10.4-ppc.egg/ 
scipy/fftpack/tests/test_pseudo_diffs.py", line 332, in  
check_random_even
     assert_array_almost_equal(direct_hilbert(direct_ihilbert(f)),f)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/numpy-0.9.2.1826-py2.4-macosx-10.4-ppc.egg/ 
numpy/testing/utils.py", line 182, in assert_array_almost_equal
     assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
         Array 1: [  3.4694470e-18+0.j   0.0000000e+00-0.j    
1.3276999e-18-0.j
    0.0000000e+00-0.j  -2.4532695e-18-0.j   0.0000000e+00-0....
         Array 2: [ 0.3593213 -0.1507557  0.1843634  0.2185266  
-0.1491027  0.260701
   0.3475645  0.3236272 -0.0056732 -0.2636082 -0.261637...


======================================================================
FAIL: bench_random  
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_shift)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy-0.4.4.1525-py2.4-macosx-10.4-ppc.egg/ 
scipy/fftpack/tests/test_pseudo_diffs.py", line 424, in bench_random
     assert_array_almost_equal(direct_shift(f,1),sf)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/numpy-0.9.2.1826-py2.4-macosx-10.4-ppc.egg/ 
numpy/testing/utils.py", line 182, in assert_array_almost_equal
     assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 98.0%):
         Array 1: [ 0.6015407  0.6432035  0.7632704  0.947396    
1.1731603  1.4125187
   1.635358   1.8137685  1.9262065  1.9605388  1.91521...
         Array 2: [ 0.6015407  0.5654719  0.6040595  0.7013589   
0.8369433  0.9885575
   1.1344713  1.2554716  1.336468   1.3676865  1.34542...


======================================================================
FAIL: check_definition  
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_shift)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy-0.4.4.1525-py2.4-macosx-10.4-ppc.egg/ 
scipy/fftpack/tests/test_pseudo_diffs.py", line 390, in check_definition
     assert_array_almost_equal(shift(sin(x),a),direct_shift(sin(x),a))
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/numpy-0.9.2.1826-py2.4-macosx-10.4-ppc.egg/ 
numpy/testing/utils.py", line 182, in assert_array_almost_equal
     assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 88.8888888889%):
         Array 1: [ 0.0998334  0.4341242  0.7160532  0.9116156   
0.9972237  0.9625519
   0.8117822  0.5630995  0.2464987 -0.0998334 -0.43412...
         Array 2: [ 0.0998334  0.0938127  0.0764768  0.0499167   
0.0173359 -0.0173359
-0.0499167 -0.0764768 -0.0938127 -0.0998334 -0.09381...


======================================================================
FAIL: bench_random  
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_tilbert)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy-0.4.4.1525-py2.4-macosx-10.4-ppc.egg/ 
scipy/fftpack/tests/test_pseudo_diffs.py", line 273, in bench_random
     assert_array_almost_equal(tilbert(f,1),direct_tilbert(f,1))
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/numpy-0.9.2.1826-py2.4-macosx-10.4-ppc.egg/ 
numpy/testing/utils.py", line 182, in assert_array_almost_equal
     assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 96.0%):
         Array 1: [ -1.0896991e+00  -1.1569240e+00  -1.1548950e+00   
-1.0752326e+00
   -9.1434140e-01  -6.7589846e-01  -3.7316325e-01  -2.99...
         Array 2: [ -1.0896991e+00 +0.0000000e+00j  -1.0606855e+00  
-6.1149403e-17j
   -9.7447017e-01 -6.0785235e-17j  -8.3380221e-01 +1.609...


======================================================================
FAIL: check_random_even  
(scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_tilbert)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy-0.4.4.1525-py2.4-macosx-10.4-ppc.egg/ 
scipy/fftpack/tests/test_pseudo_diffs.py", line 240, in  
check_random_even
     assert_array_almost_equal(direct_tilbert(direct_itilbert(f,h),h),f)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/numpy-0.9.2.1826-py2.4-macosx-10.4-ppc.egg/ 
numpy/testing/utils.py", line 182, in assert_array_almost_equal
     assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
         Array 1: [ 0.+0.j  0.-0.j  0.-0.j  0.-0.j  0.-0.j  0.-0.j   
0.-0.j  0.-0.j  0.-0.j
   0.-0.j  0.-0.j  0.-0.j  0.-0.j  0.-0.j  0.-0....
         Array 2: [-0.4887394  0.1249265 -0.103235  -0.4062288   
0.2585714  0.1095033
-0.0283535  0.4611639  0.0624227  0.1781299  0.43917...


======================================================================
FAIL: bench_random (scipy.fftpack.basic.test_basic.test_fft)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy-0.4.4.1525-py2.4-macosx-10.4-ppc.egg/ 
scipy/fftpack/tests/test_basic.py", line 162, in bench_random
     assert_array_almost_equal(fft(x),y)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/numpy-0.9.2.1826-py2.4-macosx-10.4-ppc.egg/ 
numpy/testing/utils.py", line 182, in assert_array_almost_equal
     assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
         Array 1: [  5.3861007e+01+0.j          1.7218330e+00+1.2361686j
    3.0878512e-01+1.2132911j  -7.9501199e-01-2.7068478j
   -3.05832...
         Array 2: [  5.3861007e+01 +4.9356911e+01j   1.1092897e+00  
+3.3469226e+00j
    3.0029669e+00 +5.0301050e-01j  -4.4234200e+00 -3.517...


======================================================================
FAIL: check_definition (scipy.fftpack.basic.test_basic.test_fft)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy-0.4.4.1525-py2.4-macosx-10.4-ppc.egg/ 
scipy/fftpack/tests/test_basic.py", line 98, in check_definition
     assert_array_almost_equal(y,y1)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/numpy-0.9.2.1826-py2.4-macosx-10.4-ppc.egg/ 
numpy/testing/utils.py", line 182, in assert_array_almost_equal
     assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
         Array 1: [ 20.+0.j   0.+0.j  -4.+4.j   0.+0.j  -4.+0.j    
0.-0.j  -4.-4.j   0.-0.j]
         Array 2: [ 20.       +3.j         -0.7071068+0.7071068j   
-7.       +4.j
   -0.7071068-0.7071068j  -4.       -3.j          0.707106...


======================================================================
FAIL: check_definition (scipy.fftpack.basic.test_basic.test_fftn)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy-0.4.4.1525-py2.4-macosx-10.4-ppc.egg/ 
scipy/fftpack/tests/test_basic.py", line 425, in check_definition
     assert_array_almost_equal(y,direct_dftn(x))
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/numpy-0.9.2.1826-py2.4-macosx-10.4-ppc.egg/ 
numpy/testing/utils.py", line 182, in assert_array_almost_equal
     assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 22.2222222222%):
         Array 1: [[ 45. +0.j         -4.5+2.5980762j  -4.5-2.5980762j]
[-13.5+7.7942286j   0. +0.j          0. +0.j       ]
[-13.5-7.79...
         Array 2: [[ 45. +0.j         -4.5+2.5980762j  -4.5-2.5980762j]
[-13.5+0.j          0. +0.j          0. -0.j       ]
[-13.5+0.j ...


======================================================================
FAIL: bench_random (scipy.fftpack.basic.test_basic.test_ifft)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy-0.4.4.1525-py2.4-macosx-10.4-ppc.egg/ 
scipy/fftpack/tests/test_basic.py", line 250, in bench_random
     assert_array_almost_equal(ifft(x),y)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/numpy-0.9.2.1826-py2.4-macosx-10.4-ppc.egg/ 
numpy/testing/utils.py", line 182, in assert_array_almost_equal
     assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
         Array 1: [ 0.5381809 +0.0000000e+00j -0.0333    -1.8584613e-03j
   0.0097213 -9.6840755e-03j -0.0184339 -2.1795412e-02j
-0.033912...
         Array 2: [  5.3818089e-01 +4.8791729e-01j  -2.2206355e-02  
-1.7093318e-02j
    2.2545471e-02 -4.1871617e-02j  -1.3166584e-02 +3.814...


======================================================================
FAIL: check_definition (scipy.fftpack.basic.test_basic.test_ifft)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy-0.4.4.1525-py2.4-macosx-10.4-ppc.egg/ 
scipy/fftpack/tests/test_basic.py", line 183, in check_definition
     assert_array_almost_equal(y,y1)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/numpy-0.9.2.1826-py2.4-macosx-10.4-ppc.egg/ 
numpy/testing/utils.py", line 182, in assert_array_almost_equal
     assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
         Array 1: [ 2.5+0.j   0. -0.j  -0.5-0.5j  0. -0.j  -0.5+0.j    
0. +0.j  -0.5+0.5j
   0. +0.j ]
         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 "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy-0.4.4.1525-py2.4-macosx-10.4-ppc.egg/ 
scipy/fftpack/tests/test_basic.py", line 217, in check_random_real
     assert_array_almost_equal (ifft(fft(x)),x)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/numpy-0.9.2.1826-py2.4-macosx-10.4-ppc.egg/ 
numpy/testing/utils.py", line 182, in assert_array_almost_equal
     assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 98.0392156863%):
         Array 1: [ 0.1560985 +0.0000000e+00j  0.6894917 -6.5307237e-18j
   0.4770869 +0.0000000e+00j  0.399722  -4.9826377e-17j
   0.579505...
         Array 2: [  1.5609845e-01   8.9684084e-01   3.7733582e-01    
6.8525305e-01
    7.1896685e-01   6.3541571e-01   3.6191352e-01   1.78...


======================================================================
FAIL: check_definition (scipy.fftpack.basic.test_basic.test_ifftn)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy-0.4.4.1525-py2.4-macosx-10.4-ppc.egg/ 
scipy/fftpack/tests/test_basic.py", line 594, in check_definition
     assert_array_almost_equal(y,direct_idftn(x))
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/numpy-0.9.2.1826-py2.4-macosx-10.4-ppc.egg/ 
numpy/testing/utils.py", line 182, in assert_array_almost_equal
     assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 22.2222222222%):
         Array 1: [[ 5. +0.j        -0.5-0.2886751j -0.5+0.2886751j]
[-1.5-0.8660254j  0. +0.j         0. +0.j       ]
[-1.5+0.8660254j ...
         Array 2: [[ 5. +0.j        -0.5-0.2886751j -0.5+0.2886751j]
[-1.5+0.j         0. -0.j         0. +0.j       ]
[-1.5+0.j        ...


======================================================================
FAIL: check_definition (scipy.fftpack.basic.test_basic.test_irfft)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy-0.4.4.1525-py2.4-macosx-10.4-ppc.egg/ 
scipy/fftpack/tests/test_basic.py", line 341, in check_definition
     assert_array_almost_equal(y,ifft(x1))
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/numpy-0.9.2.1826-py2.4-macosx-10.4-ppc.egg/ 
numpy/testing/utils.py", line 182, 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.625+0.j -0.375-0.j -0.375-0.j -0.375-0.j  0.625 
+0.j -0.375+0.j
-0.375+0.j -0.375+0.j]


----------------------------------------------------------------------
Ran 945 tests in 124.005s

FAILED (failures=16)


--
Christopher J. Fonnesbeck

Population Ecologist, Marine Mammal Section
Fish & Wildlife Research Institute (FWC)
St. Petersburg, FL

Adjunct Assistant Professor
Warnell School of Forest Resources
University of Georgia
Athens, GA

T: 727.235.5570
E: chris at trichech.us


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2417 bytes
Desc: not available
Url : http://www.scipy.net/pipermail/scipy-user/attachments/20060105/d75fd4de/smime-0001.bin


More information about the SciPy-user mailing list