okay changed.


On Fri, Jun 7, 2013 at 2:46 PM, MrBago <notifications@github.com> wrote:

> In dipy/reconst/csdeconv.py:
>
> > +    # generate initial fODF estimate, truncated at SH order 4
> > +    fodf_sh = np.linalg.lstsq(R, s_sh)[0]  # R\s_sh
> > +    fodf_sh[15:] = 0
> > +
> > +    # set threshold on FOD amplitude used to identify 'negative' values
> > +    threshold = tau * np.mean(np.dot(B_regul, fodf_sh))
> > +
> > +    k = []
> > +    convergence = 50
> > +    for num_it in range(1, convergence + 1):
> > +        fodf = np.dot(B_regul, fodf_sh)
> > +
> > +        k2 = np.nonzero(fodf < threshold)[0]
> > +
> > +        if (k2.shape[0] + R.shape[0]) < B_regul.shape[1]:
> > +            print('too few negative directions identified - failed to converge')
>
> How about warn instead of print?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/nipy/dipy/pull/173/files#r4594605>
> .
>