Changed it to warning.


On Fri, Jun 7, 2013 at 3:41 AM, Stefan van der Walt <
notifications@github.com> wrote:

> In dipy/reconst/csdeconv.py:
>
> > +        if (k2.shape[0] + R.shape[0]) < B_regul.shape[1]:
> > +            print('too few negative directions identified - failed to converge')
> > +            return fodf_sh, num_it
> > +
> > +        if num_it > 1 and k.shape[0] == k2.shape[0]:
> > +            if (k == k2).all():
> > +                return fodf_sh, num_it
> > +
> > +        k = k2
> > +
> > +        # this is the super-resolved trick
> > +        M = np.concatenate((R, Lambda * B_regul[k, :]))
> > +        S = np.concatenate((s_sh, np.zeros(k.shape)))
> > +        fodf_sh = np.linalg.lstsq(M, S)[0]
> > +
> > +    print('maximum number of iterations exceeded - failed to converge')
>
> Question: should this print or raise a warning (or an exception)?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/nipy/dipy/pull/173/files#r4584249>
> .
>