I am trying to run a searchlight analysis based on the searchlight_dsm.py example. I&#39;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 &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>  File &quot;pymvpa_script1.py&quot;, line 154, in &lt;module&gt;<br>    sl_map = sl(blockavged_dataset)<br>  File &quot;/usr/lib64/python2.5/site-packages/mvpa/measures/base.py&quot;, line 105, in __call__<br>

    result = self._call(dataset)<br>  File &quot;/usr/lib64/python2.5/site-packages/mvpa/measures/searchlight.py&quot;, line 108, in _call<br>    measure = self.__datameasure(sphere)<br>  File &quot;/usr/lib64/python2.5/site-packages/mvpa/measures/ds.py&quot;, line 47, in __call__<br>

    test_mat = N.asarray([in_vec, dset_vec])<br>  File &quot;/usr/lib64/python2.5/site-packages/numpy/core/numeric.py&quot;, 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&#39;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&#39;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 &amp; Psychopathology Lab<br>Washington University in St. Louis<br>