[pymvpa] Dimension mismatch error

Yaroslav Halchenko debian at onerussian.com
Sun Dec 27 02:10:04 UTC 2009


On Sat, 26 Dec 2009, Geethmala wrote:
>    Can anyone explain what's PyMVPA doing to the data?
nothing ;)
I would be more interested in what SPM does to it ;)

>    I would appreciate any feedback.
since you asked for any:
in python could you do

from nifti import NiftiImage
print NiftiImage('data/mask.img').header['dim']
print NiftiImage('data/wrbold1_0000.nii').header['dim']

alternatively you can use some other tool to verify that headers indeed
don't match (nifti_tool, fslhd, etc)

if they indeed don't match -- then verify that those are the same files
(check directory path etc) as for the files you've showed under
SPM and either in spm you might have resliced them into "standard" space
after loading (sorry, I am ignorant in SPM in- and externals so don't
know from my experience either it does smth like that to loaded data).

-- 
                                  .-.
=------------------------------   /v\  ----------------------------=
Keep in touch                    // \\     (yoh@|www.)onerussian.com
Yaroslav Halchenko              /(   )\               ICQ#: 60653192
                   Linux User    ^^-^^    [175555]





More information about the Pkg-ExpPsy-PyMVPA mailing list