[SciPy-Dev] fftpack test failures for 0.8.0b1

Ralf Gommers ralf.gommers at googlemail.com
Thu Jun 17 10:50:40 EDT 2010


Below are two test failures in fftpack. The test data is random, so they
happen only occasionally. I decreased the precision to decimal=5 and
maxulp=1e4, but still got one failure of each test in 200 test runs. The
TestSingleIFFT failure always occurs with an array of size 111. This is on
OS X 10.6, the same first error was also reported on 10.5.

What should be done with these failures?

Thanks,
Ralf



======================================================================
FAIL: test_random_real (test_basic.TestSingleIFFT)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib64/python2.6/site-packages/scipy/fftpack/tests/test_basic.py",
line 205, in test_random_real
    assert_array_almost_equal (y1, x)
  File "/usr/lib64/python2.6/site-packages/numpy/testing/utils.py",
line 774, in assert_array_almost_equal
    header='Arrays are not almost equal')
  File "/usr/lib64/python2.6/site-packages/numpy/testing/utils.py",
line 618, in assert_array_compare
    raise AssertionError(msg)
AssertionError:
Arrays are not almost equal

(mismatch 0.900900900901%)
 x: array([ 0.41364330 +5.90676663e-09j,  0.80715483 +2.64462052e-08j,
        0.05271048 -3.67830459e-08j,  0.72591031 -9.31092980e-09j,
        0.35162351 +1.40012923e-09j,  0.17632297 -1.25899486e-08j,...
 y: array([ 0.41364321,  0.80715483,  0.05271063,  0.72591019,  0.35162321,
        0.17632306,  0.3850981 ,  0.75712842,  0.68898875,  0.52632052,
        0.69728118,  0.68721569,  0.69135427,  0.34033701,  0.65788335,...
 >>  raise AssertionError('\nArrays are not almost equal\n\n(mismatch
0.900900900901%)\n x: array([ 0.41364330 +5.90676663e-09j,  0.80715483
+2.64462052e-08j,\n        0.05271048 -3.67830459e-08j,  0.72591031
-9.31092980e-09j,\n        0.35162351 +1.40012923e-09j,  0.17632297
-1.25899486e-08j,...\n y: array([ 0.41364321,  0.80715483,  0.05271063,
0.72591019,  0.35162321,\n        0.17632306,  0.3850981 ,  0.75712842,
0.68898875,  0.52632052,\n        0.69728118,  0.68721569,  0.69135427,
0.34033701,  0.65788335,...')


======================================================================
FAIL: test_definition (test_basic.TestIfftnDouble)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/sw/lib/python2.6/site-packages/scipy/fftpack/tests/test_basic.py",
line 498, in test_definition
   assert_array_almost_equal_nulp(ifftn(x),direct_idftn(x),self.maxnlp)
 File "/sw/lib/python2.6/site-packages/numpy/testing/utils.py", line 1116,
in assert_array_almost_equal_nulp
   raise AssertionError(msg)
AssertionError: X and Y are not equal to 2000 ULP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20100617/3b1112c7/attachment.html>


More information about the SciPy-Dev mailing list