FAIL: Test corrcoef 1 1D variable w/missing values

Hi all, Can someone reproduce the failure with
numpy.__version__ '1.2.0.dev5618'
====================================================================== FAIL: Test corrcoef 1 1D variable w/missing values ---------------------------------------------------------------------- Traceback (most recent call last): File "/data/home/nwagner/local/lib/python2.5/site-packages/numpy/ma/tests/test_extras.py", line 463, in test_1d_w_missing corrcoef(x, x[::-1], rowvar=False)) File "/data/home/nwagner/local/lib/python2.5/site-packages/numpy/ma/testutils.py", line 120, in assert_equal return assert_array_equal(actual, desired, err_msg) File "/data/home/nwagner/local/lib/python2.5/site-packages/numpy/ma/testutils.py", line 186, in assert_array_equal header='Arrays are not equal') File "/data/home/nwagner/local/lib/python2.5/site-packages/numpy/ma/testutils.py", line 180, in assert_array_compare verbose=verbose, header=header) File "/data/home/nwagner/local/lib/python2.5/site-packages/numpy/testing/utils.py", 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. ]]) Nils

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
participants (2)
-
Nils Wagner
-
Pierre GM