[pymvpa] saving searchlight map in 0.4.4
Sergey.V.Fogelson at Dartmouth.edu
Sergey.V.Fogelson at Dartmouth.edu
Wed Feb 3 01:26:58 UTC 2010
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.
More information about the Pkg-ExpPsy-PyMVPA
mailing list