Skip to content

Commit

Permalink
BF: Fixed a bug in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelNH committed Nov 1, 2016
1 parent 5f467e9 commit 091c7cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dipy/reconst/tests/test_dti.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,11 +739,11 @@ def test_decompose_tensor_nan():
lref, vref = decompose_tensor(from_lower_triangular(D_fine))
lfine, vfine = _decompose_tensor_nan(from_lower_triangular(D_fine),
from_lower_triangular(D_alter))
assert_array_almost_equal(lfine, np.array(1.7e-3, 0.3e-3, 0.2e-3))
assert_array_almost_equal(lfine, np.array([1.7e-3, 0.3e-3, 0.2e-3]))
assert_array_almost_equal(vfine, vref)

lref, vref = decompose_tensor(from_lower_triangular(D_alter))
lalter, valter = _decompose_tensor_nan(from_lower_triangular(D_nan),
from_lower_triangular(D_alter))
assert_array_almost_equal(lalter, np.array(1.6e-3, 0.4e-3, 0.3e-3))
from_lower_triangular(D_alter))
assert_array_almost_equal(lalter, np.array([1.6e-3, 0.4e-3, 0.3e-3]))
assert_array_almost_equal(valter, vref)

0 comments on commit 091c7cf

Please sign in to comment.