[pymvpa] searchlight analysis fails

lydia.hellrung at econ.uzh.ch lydia.hellrung at econ.uzh.ch
Fri Jun 9 16:03:17 UTC 2017


Dear pymvpa-team again,

I'm trying to run a searchlight analysis, but I just end up in error
messages.
I followed your searchlight example from the tutorial (detrend, z-score and
kick out non-used conditions) and then calling the sl function exactly as
in your tutorial (sl_map = sl(ds_copy)).
I'm running it on a computer with lots of memory and several CPUs now.
When I load the full dataset (size 180,338688), I end up with traceback #1
(please see below).
When I load a mask I have less data (size180, 213), I end up with traceback
#2 (also below).

I just found such an issue in your mail archive with 3D nifti, but here
it's 4D nifti.
What am I missing here?

Thanks for your help
Lydia


##### Traceback #1 ##############
Traceback (most recent call last):
  File "load.py2", line 81, in <module>
    sl_map = sl(ds_copy)
  File "/usr/lib/python2.7/dist-packages/mvpa2/base/learner.py", line 258,
in __call__
    return super(Learner, self).__call__(ds)
  File "/usr/lib/python2.7/dist-packages/mvpa2/base/node.py", line 137, in
__call__
    result = self._call(ds, **(_call_kwargs or self._get_call_kwargs(ds)))
  File "/usr/lib/python2.7/dist-packages/mvpa2/measures/searchlight.py",
line 154, in _call
    results = self._sl_call(dataset, roi_ids, nproc)
  File "/usr/lib/python2.7/dist-packages/mvpa2/measures/searchlight.py",
line 371, in _sl_call
    seed=seed, iblock=iblock)
  File "/usr/lib/pymodules/python2.7/pprocess.py", line 620, in __call__
    self.exchange.start(self.callable, *args, **kw)
  File "/usr/lib/pymodules/python2.7/pprocess.py", line 709, in start
    Exchange.start(self, callable, *args, **kw)
  File "/usr/lib/pymodules/python2.7/pprocess.py", line 514, in start
    self.add_wait(start(callable, *args, **kw))
  File "/usr/lib/pymodules/python2.7/pprocess.py", line 1103, in start
    channel = create()
  File "/usr/lib/pymodules/python2.7/pprocess.py", line 999, in
create_socketpair
    parent, child = socket.socketpair()
socket.error: [Errno 24] Too many open files


##### Traceback #2 ##############

Traceback (most recent call last):
  File "load.py2", line 82, in <module>
    sl_map = sl(ds_copy)
  File "/usr/lib/python2.7/dist-packages/mvpa2/base/learner.py", line 258,
in __call__
    return super(Learner, self).__call__(ds)
  File "/usr/lib/python2.7/dist-packages/mvpa2/base/node.py", line 137, in
__call__
    result = self._call(ds, **(_call_kwargs or self._get_call_kwargs(ds)))
  File "/usr/lib/python2.7/dist-packages/mvpa2/measures/searchlight.py",
line 154, in _call
    results = self._sl_call(dataset, roi_ids, nproc)
  File "/usr/lib/python2.7/dist-packages/mvpa2/measures/searchlight.py",
line 384, in _sl_call
    results=self.__handle_all_results(p_results))
  File "/usr/lib/python2.7/dist-packages/mvpa2/measures/searchlight.py",
line 218, in _concat_results
    results = sum(results, [])
  File "/usr/lib/python2.7/dist-packages/mvpa2/measures/searchlight.py",
line 540, in __handle_all_results
    for r in results:
  File "/usr/lib/pymodules/python2.7/pprocess.py", line 764, in next
    self.store()
  File "/usr/lib/pymodules/python2.7/pprocess.py", line 400, in store
    self.store_data(channel)
  File "/usr/lib/pymodules/python2.7/pprocess.py", line 747, in store_data
    data = channel.receive()
  File "/usr/lib/pymodules/python2.7/pprocess.py", line 135, in receive
    obj = self._receive()
  File "/usr/lib/pymodules/python2.7/pprocess.py", line 121, in _receive
    raise obj
TypeError: in method 'double_setitem', argument 3 of type 'double'
[SLC] DBG:          Starting computing block for 1 elements
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20170609/3975bb5d/attachment.html>


More information about the Pkg-ExpPsy-PyMVPA mailing list