[pymvpa] Mask in from_wizard generates no data.

Thomas Nickson thomas.nickson at gmail.com
Wed Dec 10 16:27:32 UTC 2014


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 <debian at onerussian.com>
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
> Pkg-ExpPsy-PyMVPA at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20141210/051f686e/attachment.html>


More information about the Pkg-ExpPsy-PyMVPA mailing list