Skip to content

Commit

Permalink
test_olsR: useassert_array_almost_equal instead
Browse files Browse the repository at this point in the history
due to bug in numpy

Related: numpy/numpy#5200
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
  • Loading branch information
ignatenkobrain committed Nov 1, 2015
1 parent 93f4405 commit 7222bbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nipy/algorithms/statistics/models/tests/test_olsR.py
Expand Up @@ -148,9 +148,9 @@ def test_results():
M = np.identity(14)
M = np.array([M[i] for i in [0,1,2,3,4,5,6,8,9,10,11,12,13]])
Fc = r.Fcontrast(M)
yield niptest.assert_almost_equal, Fc.F, f['F'], 6
yield niptest.assert_almost_equal, Fc.df_num, f['df_num'], 6
yield niptest.assert_almost_equal, Fc.df_den, f['df_den'], 6
yield niptest.assert_array_almost_equal, [Fc.F], [f['F']], 6
yield niptest.assert_array_almost_equal, [Fc.df_num], [f['df_num']], 6
yield niptest.assert_array_almost_equal, [Fc.df_den], [f['df_den']], 6

thetas = []
sds = []
Expand Down

0 comments on commit 7222bbf

Please sign in to comment.