I think that the examples should each be self-contained, and dead easy to
understand.

It might be boring for us to read, and look like too much boilerplat, but
think of the target audience for this, a new user with little experience
with these things. People will tend to take the example they need and try
running that.


On Mon, Dec 9, 2013 at 8:09 AM, maurozucchelli <notifications@github.com>wrote:

> In dipy/reconst/shore.py:
>
> > +        sphere = get_sphere('symmetric724')
> > +        fimg, fbvals, fbvecs = get_data('ISBI_testing_
> 2shells_table')
> > +        bvals, bvecs = read_bvals_bvecs(fbvals, fbvecs)
> > +        gtab = gradient_table(bvals[1:], bvecs[1:,:])
> > +        from dipy.sims.voxel import SticksAndBall
> > +        data, golden_directions = SticksAndBall(gtab, d=0.0015,
> > +                                                S0=1, angles=[(0, 0), (90, 0)],
> > +                                                fractions=[50, 50], snr=None)
> > +        from dipy.reconst.canal import ShoreModel
> > +        radial_order = 4
> > +        zeta = 700
> > +        asm = ShoreModel(gtab, radial_order=radial_order, zeta=zeta,
> > +                         lambdaN=1e-8, lambdaL=1e-8)
> > +        asmfit = asm.fit(data)
> > +        odf_sh = asmfit.odf_sh()
> > +        """
>
> Other rec techniques have it, like dsi.py... So I think we should keep it!
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/nipy/dipy/pull/257/files#r8201343>
> .
>