[pymvpa] Error running dissimilarity analysis

Michael W. Cole mwcole at gmail.com
Sun Dec 13 14:51:44 UTC 2009


I am trying to run a searchlight analysis based on the searchlight_dsm.py
example. I'm doing a 4-way classification with 2-voxel radius spheres.

It will run for a few spheres, then crash with this error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pymvpa_script1.py", line 154, in <module>
    sl_map = sl(blockavged_dataset)
  File "/usr/lib64/python2.5/site-packages/mvpa/measures/base.py", line 105,
in __call__
    result = self._call(dataset)
  File "/usr/lib64/python2.5/site-packages/mvpa/measures/searchlight.py",
line 108, in _call
    measure = self.__datameasure(sphere)
  File "/usr/lib64/python2.5/site-packages/mvpa/measures/ds.py", line 47, in
__call__
    test_mat = N.asarray([in_vec, dset_vec])
  File "/usr/lib64/python2.5/site-packages/numpy/core/numeric.py", line 230,
in asarray
    return array(a, dtype, copy=False, order=order)
ValueError: setting an array element with a sequence.

I've found that the spheres that work have 1830 values each in in_vec and
dset_vec, but the sphere it crashes on only has 1540 values. I'm not sure if
this is related to the crash or not.

Any ideas on how to get around this error?

Thanks in advance!

Michael


-- 
Michael W. Cole, Ph.D.
Post-doctoral researcher
Cognitive Control & Psychopathology Lab
Washington University in St. Louis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20091213/7e242dee/attachment.htm>


More information about the Pkg-ExpPsy-PyMVPA mailing list