[pymvpa] saving searchlight map in 0.4.4

Sergey.V.Fogelson at Dartmouth.edu Sergey.V.Fogelson at Dartmouth.edu
Wed Feb 3 03:30:06 UTC 2010


An update on the searchlight map memory error,

When the searchlight finishes running, my desktop slows down a  
ridiculous amount . I investigated and it seems that python then takes  
up all of the available ram on the system. I checked the system  
monitor on my ubuntu desktop and the python process's status was  
Uninterruptible and the amount of ram it was using was a whopping 10.1  
Gigs!

Any idea what may be causing this? Again, my earlier pymvpa version  
(0.4.2) did not have this problem.

Thanks for all of your help,
Sergey.

Quoting "Sergey.V.Fogelson at Dartmouth.edu" <Sergey.V.Fogelson at Dartmouth.edu>:

> Hello,
>
> I keep getting an error when I attempt to save the searchlight map
> after having generated it. The debugger gets through to 100% and then
> issues the following error:
>
> [SLC] DBG:  Doing 24186 spheres: 24186 (22 features) [100%]
> Traceback (most recent call last):
>   File "searchlight3.py", line 31, in <module>
>     orig_s1_map = dataset.mapReverse(N.array(s1_map))
>   File "/usr/lib/pymodules/python2.6/mvpa/datasets/mapped.py", line 97,
> in mapReverse
>     return self.mapper.reverse(data)
>   File "/usr/lib/pymodules/python2.6/mvpa/mappers/mask.py", line 163,
> in reverse
>     dtype=data.dtype)
> MemoryError
>
> Here's the code snippet for saving the map ive been using that worked
> in earlier versions:
>
> ####################
> s1_map = s1(dataset)
> orig_s1_map = dataset.mapReverse(N.array(s1_map))
> data_hdr = dataset.niftihdr
> NiftiImage(orig_s1_map,header=data_hdr).save('9mmSL_test.nii.gz')
> ####################
>
> thanks,
> Sergey.
>
> _______________________________________________
> Pkg-ExpPsy-PyMVPA mailing list
> Pkg-ExpPsy-PyMVPA at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-exppsy-pymvpa





More information about the Pkg-ExpPsy-PyMVPA mailing list