[pymvpa] loading sample with varying dimension

Temilade Adelore temiadelore at gmail.com
Thu Apr 8 20:22:01 UTC 2010


Hello Experts,
I am trying to load samples into pymvpa using the following command:

pre_fmri_src = NiftiDataset(samples=[fmri_src1, fmri_src2, fmri_src3,
fmri_src4, fmri_src5, fmri_src6, fmri_src7, fmri_src8,
fmri_src9,fmri_src10], labels=4, chunks=10, enforce_dim=None, mask=None)

Each of the 10 samples correspond to a 4D NiftiImage instance.
I would like each sample to be a chunk, hence creating 10 chunks of data.
However, when I run the command above I get the following error:

ValueError: Input volumes contain variable number of dimensions: [(136, 33,
64, 64), (136, 33, 64, 64), (136, 33, 64, 64), (136, 33, 64, 64), (136, 33,
64, 64), (136, 33, 64, 64), (136, 33, 64, 64), (136, 33, 64, 64), (136, 33,
64, 64), (91, 33, 64, 64)]

I realize that the last chunk has a different dimension ( a different number
of time points) however I do not see why should give me an error.
Is there anyway I can work around this? All suggestions are much
appreciated.
Thanks,
Temi Adelore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20100408/b558c04b/attachment.htm>


More information about the Pkg-ExpPsy-PyMVPA mailing list