[pymvpa] Mac memory issues w/ large datasets
James M. Hughes
james.m.hughes at dartmouth.edu
Mon Oct 18 17:02:22 UTC 2010
Thanks for the suggestion. This apparently fails since I can't
overwrite the attribute directly.
The PyNifti documentation for NiftiImage includes a 'setDataArray'
function which would seem to suffice for this purpose, but it does not
appear to exist as an object method for the version of PyNifti that I
have. Perhaps it was removed?
On Oct 18, 2010, at 9:30 AM, Michael Hanke wrote:
> 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
>>>> 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.
> GPG key: 4096R/7FFB9E9B Michael Hanke
> Pkg-ExpPsy-PyMVPA mailing list
> Pkg-ExpPsy-PyMVPA at lists.alioth.debian.org
More information about the Pkg-ExpPsy-PyMVPA