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.<br><br>It will run for a few spheres, then crash with this error:<br><br>
Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br> File "pymvpa_script1.py", line 154, in <module><br> sl_map = sl(blockavged_dataset)<br> File "/usr/lib64/python2.5/site-packages/mvpa/measures/base.py", line 105, in __call__<br>
result = self._call(dataset)<br> File "/usr/lib64/python2.5/site-packages/mvpa/measures/searchlight.py", line 108, in _call<br> measure = self.__datameasure(sphere)<br> File "/usr/lib64/python2.5/site-packages/mvpa/measures/ds.py", line 47, in __call__<br>
test_mat = N.asarray([in_vec, dset_vec])<br> File "/usr/lib64/python2.5/site-packages/numpy/core/numeric.py", line 230, in asarray<br> return array(a, dtype, copy=False, order=order)<br>ValueError: setting an array element with a sequence.<br>
<br>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.<br><br>Any ideas on how to get around this error?<br>
<br>Thanks in advance!<br><br>Michael<br><br clear="all"><br>-- <br>Michael W. Cole, Ph.D.<br>Post-doctoral researcher<br>Cognitive Control & Psychopathology Lab<br>Washington University in St. Louis<br>