[pymvpa] Mac memory issues w/ large datasets

Michael Hanke michael.hanke at gmail.com
Mon Oct 18 13:30:26 UTC 2010


Hey,

On Sun, Oct 17, 2010 at 06:33:36PM -0400, James M. Hughes wrote:
> Just one more question:
> 
> I have a nifti file that has 5 dimensions (it's 10 x 1 x 80 x 80 x
> 33) instead of 4.  Is there anyway I can force it to ignore that
> second dimension or get rid of it later on?


This 5d thing is caused by AFNI, right?

If you are using pynifti you can do something like this (just a sketch):

>>> img = NiftiImage('something_from_afni.nii.gz')
>>> img.data = img.data.squeeze()
>>> ds = NiftiDataset(samples=img, mask='from_somewhere.nii.gz', ...)

Something similar should work with NiBabel too.


HTH,

Michael


-- 
GPG key: 4096R/7FFB9E9B Michael Hanke
http://mih.voxindeserto.de



More information about the Pkg-ExpPsy-PyMVPA mailing list