[SciPy-user] Error and fail on test

Ilmar Wilbers ilmarw at simula.no
Mon Jan 28 11:31:49 EST 2008


Hello,

Thank you, that worked. It did see that fix, but I thought it was part 
of version 0.6.0.

Now I have another problem, I get the following error:
======================================================================
FAIL: check_x_stride (scipy.linalg.tests.test_fblas.test_cgemv)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Users/ilmarw/ext/Darwin/lib/python2.5/site-packages/scipy/linalg/tests/test_fblas.py", 
line 343, in check_x_stride
     assert_array_almost_equal(desired_y,y)
   File 
"/Users/ilmarw/ext/Darwin/lib/python2.5/site-packages/numpy/testing/utils.py", 
line 232, in assert_array_almost_equal
     header='Arrays are not almost equal')
   File 
"/Users/ilmarw/ext/Darwin/lib/python2.5/site-packages/numpy/testing/utils.py", 
line 217, in assert_array_compare
     assert cond, msg
AssertionError:
Arrays are not almost equal

(mismatch 33.3333333333%)
  x: array([  8.31392193 -8.31392193j, -14.72563744+16.72563744j,
        -13.49905777+17.49905777j], dtype=complex64)
  y: array([  8.31392193 -8.31392193j, -14.72563744+16.72563553j,
        -13.49905777+17.49905777j], dtype=complex64)

----------------------------------------------------------------------
Ran 1719 tests in 4.717s

FAILED (failures=1)
Out[2]: <unittest._TextTestResult run=1719 errors=0 failures=1>

The weird thing is, the two arrays (x and y) are the same. Any thought, 
someone?

ilmar

Adam Mercer wrote:
> On Jan 27, 2008 4:52 PM, Ilmar Wilbers <ilmarw at simula.no> wrote:
> 
>> ======================================================================
>> FAIL: check_dot (scipy.lib.tests.test_blas.test_fblas1_simple)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>    File
>> "/Users/ilmarw/ext/Darwin/lib/python2.5/site-packages/scipy/lib/blas/tests/test_blas.py",
>> line 76, in check_dot
>>      assert_almost_equal(f([3j,-4,3-4j],[2,3,1]),-9+2j)
>>    File
>> "/Users/ilmarw/ext/Darwin/lib/python2.5/site-packages/numpy/testing/utils.py",
>> line 158, in assert_almost_equal
>>      assert round(abs(desired - actual),decimal) == 0, msg
>> AssertionError:
>> Items are not equal:
>>   ACTUAL: 7.3632427319432975e-38j
>>   DESIRED: (-9+2j)
> 
> I ran into this problem, it has been fixed in SVN
> 
> http://projects.scipy.org/scipy/scipy/changeset/3387
> 
> Cheers
> 
> Adam
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user



More information about the SciPy-User mailing list