Skip to content

Commit

Permalink
Merge pull request #2133 from jhlegarreta/FixIVIMTestRaggedSequenceGe…
Browse files Browse the repository at this point in the history
…nerationWarning

BF: Fix NumPy warning when creating arrays from ragged sequences
  • Loading branch information
skoudoro committed Apr 19, 2020
2 parents b8f91f6 + cae74f2 commit f76c084
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dipy/reconst/tests/test_ivim.py
Expand Up @@ -185,7 +185,8 @@ def test_mask():
Test whether setting incorrect mask raises and error
"""
mask_correct = data_multi[..., 0] > 0.2
mask_not_correct = np.array([[False, True, False], [True, False]])
mask_not_correct = np.array([[False, True, False], [True, False]],
dtype=np.bool)

ivim_fit = ivim_model_trr.fit(data_multi, mask_correct)
est_signal = ivim_fit.predict(gtab, S0=1.)
Expand Down

0 comments on commit f76c084

Please sign in to comment.