Oh, okay, then I will let you off this time! Thanks for your help.
On Wed, Dec 10, 2014 at 4:25 PM, Yaroslav Halchenko <[email protected]> wrote: > > On Wed, 10 Dec 2014, Thomas Nickson wrote: > > > :O My hero. It works! > > But then why does fmri_dataset work without this step? > > well... it is smarter? ;) not really -- just more "restricted" use-case > where > mask could be only: > > mask : str or NiftiImage > Filename or image instance of a 3D volume mask. Voxels corresponding > to > non-zero elements in the mask will be selected. The mask has to be > in the > same space (orientation and dimensions) as the timeseries image > > so no array of indexes... that is why we can do smth like: > > # now apply the mask if any > if not mask is None: > flatmask = ds.a.mapper.forward1(mask) > ds = ds[:, flatmask != 0] > > which actually disallows mask to be an array of indices, and we never had > such > a use case for fmri dataset, thus not even allowed ;) > > -- > Yaroslav O. Halchenko, Ph.D. > http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org > Research Scientist, Psychological and Brain Sciences Dept. > Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755 > Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419 > WWW: http://www.linkedin.com/in/yarik > > _______________________________________________ > Pkg-ExpPsy-PyMVPA mailing list > [email protected] > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa >
_______________________________________________ Pkg-ExpPsy-PyMVPA mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa

