[pymvpa] error reading 3d nifti files

H.Y. Chan chan at rsm.nl
Fri Sep 26 13:54:49 UTC 2014


Hello all

Totally new beginner here and just trying to read nifti files.

Don't know if the issue has been raised before (sorry if it's been), but I have a series of 3d nifti files (>1000) to be read into the dataset and I ran into three problems:

(1) 'Too many open files' error that arises from nibabel.load function (cf http://mail.scipy.org/pipermail/nipy-devel/2011-February/005428.html)
(2) Wrong voxel dimensions ('voxel_eldim')
(3) Wrong time coordinates ('time_coords')

I checked the source code and found out the fmri_dataset relies on get_zooms(), which returns an 3-element array for 3D files and 4-element array for 4D files.

It took me a bit of time to find out the problem. To save more troubles by other beginners like me, I suggest that fmri_dataset (a) forbid loading series of 3D files (which can be converted to 4D easily in SPM anyway), and (b) allow the optional parameter of specifying TR length.

Thanks!
Hang-yee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20140926/a828bad2/attachment.html>


More information about the Pkg-ExpPsy-PyMVPA mailing list