[Numpy-discussion] FAIL: Test corrcoef 1 1D variable w/missing values

Pierre GM pgmdevlist@gmail....
Thu Aug 7 09:47:49 CDT 2008


Nils,

> ======================================================================
> FAIL: Test corrcoef 1 1D variable w/missing values
> ----------------------------------------------------------------------
...
> "/data/home/nwagner/local/lib/python2.5/site-packages/numpy/testing/utils.p
>y", line 289, in assert_array_compare
>      assert cond, msg
> AssertionError:
> Arrays are not equal
>
> (mismatch 50.0%)
>   x: array([[ 1.        , -0.38605094],
>         [-0.38605094,  1.        ]])
>   y: array([[ 1.        , -0.38605094],
>         [-0.38605094,  1.        ]])

I can't, but I'm not surprised: the two arrays look the same, I should 
probably switch to assert_almost_equal instead of assert_equal


More information about the Numpy-discussion mailing list