nipy/dipy — pull request #403 by samuelstjean (2014-07-31 16:03:56+00:00)
Title: Added mask shape check in tenfit

Seems like the old code wasn't checking if the mask was the same shape as the data, so I stole the snippet in peaks_from_model.

If the mask could be broadcasted to a valid shape, the code would run and give random results, not the maks and the data must be identical for the fit method to run.