[pymvpa] ERNiftiDataset working slowly

Jonas Kubilius jonas.kubilius at student.kuleuven.be
Tue Jan 5 15:02:12 UTC 2010


Hey all,

I have been trying to use ERNiftiDataset but it seems to be working very
slowly, by which I mean one minute to read in a single nifti file (shape =
(168, 50, 69, 57)) as compared to an almost instant behavior of
NiftiDataset. (My computer is a new Dell Optiplex 760 with Intel Core Quad
running Vista; mvpa version is 0.4.2.)

The code I'm trying to run is trivial:

nim = ERNiftiDataset(samples = 'niftiFile.nii', events = myEvents),

where myEvents is a list with 168 dictionary entries like this:

{'chunk': 0, 'duration': 4, 'label': 0, onset: 0.0}

(If I reduce duration to 1, the time drops to 15 sec.)

This seems very slow to me, especially since NiftiDataset is so fast. In
principle, I could use NiftiDataset with 168 labels and that would match my
current example with duration 1 in ERNiftiDataset, is that true? Yet the
NiftiDataset makes it, again, almost instantly. Am I doing something wrong
here or is this the expected behavior?

Thanks!
Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20100105/873a168a/attachment.htm>


More information about the Pkg-ExpPsy-PyMVPA mailing list