Please excuse my "peddestrian" code.

Matthew simply suggested he needed some help getting the ds105 example
running, I copied the existing FIAC code and tried something out.

If anyone can improve it, please do so.

On Tue, Jun 11, 2013 at 2:39 PM, bthirion <notifications@github.com> wrote:

> In examples/ds105/ds105_example.py:
>
> > +            output[n]['effect'][armask] = resT.effect
> > +        for n in fcons:
> > +            output[n][armask] = results.Fcontrast(fcons[n]).F
> > +
> > +    # Dump output to disk
> > +    odir = futil.output_dir(path_info,tcons,fcons)
> > +    # The coordmap for a single volume in the time series
> > +    vol0_map = fmri_im[0].coordmap
> > +    for n in tcons:
> > +        for v in ['t', 'sd', 'effect']:
> > +            im = Image(output[n][v], vol0_map)
> > +            save_image(im, pjoin(odir, n, '%s.nii' % v))
> > +    for n in fcons:
> > +        im = Image(output[n], vol0_map)
> > +        save_image(im, pjoin(odir, n, "F.nii"))
> > +
>
> A slightly lest peddestrian code is available in the
> nipy.modalities.fmri.glm.py
> See e.g. examples/labs/need_data/first_level_fiac.py
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/nipy/nipy/pull/275/files#r4645680>
> .
>



-- 
Jonathan Taylor
Dept. of Statistics
Sequoia Hall, 137
390 Serra Mall
Stanford, CA 94305
Tel:   650.723.9230
Fax:   650.725.8977
Web: http://www-stat.stanford.edu/~jtaylo