[pymvpa] Dataset processed in AFNI 3dDeconvolve error

Yaroslav Halchenko debian at onerussian.com
Thu Jun 2 22:02:10 UTC 2011


just a quick reply and our in-house afni experts I bet will follow up
with more concrete resolution:

On Thu, 02 Jun 2011, Kimberly Zhou wrote:
>    ValueError: Cannot enforce 4D on data with shape (64, 64, 33, 1, 624).

as you can see there is a rudimentary 4th dimension added.  Data needs
to be squashed first to remove it... and I've forgotten what was our
resolution for that: may be instead of providing a filename just prep
that data with squashed dimension...?

from nifti import NiftiImage
import numpy as np

ni = NiftiImage('filename.nii')
ni.data = np.squeeze(ni.data)
dataset = NiftiDataset(ni, ....)

?


-- 
=------------------------------------------------------------------=
Keep in touch                                     www.onerussian.com
Yaroslav Halchenko                 www.ohloh.net/accounts/yarikoptic



More information about the Pkg-ExpPsy-PyMVPA mailing list