<div> </div>
<div> Is there a easy way to do this in 0.6 ? </div>
<div> </div>
<div>Dataset.append() did not work in my test.</div>
<div> </div>
<div>Zonglei Zhen<br><br></div>
<div class="gmail_quote">On Fri, Jul 29, 2011 at 8:02 PM, Yaroslav Halchenko <span dir="ltr"><<a href="mailto:debian@onerussian.com">debian@onerussian.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi Nynke,<br><br>I believe that in 0.4.x you could simply "add" datasets which should<br>preserve their type/masking:<br>
<br>(Pydb) data<br><Dataset / int16 2 x 294912 uniq: 2 chunks 2 labels><br>(Pydb) data2<br><Dataset / int16 2 x 294912 uniq: 2 chunks 2 labels><br>(Pydb) print (data+data2).__class__<br><class 'mvpa.datasets.nifti.NiftiDataset'><br>
*(Pydb) print (data+data2)<br>Dataset / int16 4 x 294912 uniq: 2 chunks 2 labels<br><br><br>so just add them all up, usually I do it with smth like<br><br>ds = None<br>for s in subjects:<br>   ds_ = NiftiDataset(....)<br>
   ... preprocess data ...<br>   if ds is None:<br>       ds = ds_<br>   ds += ds_<br>del ds_<br>
<div class="im"><br><br>On Fri, 29 Jul 2011, Nynke van der Laan wrote:<br><br>> When I try to perform a searchlight analysis I get the following<br>> message: "Searchlight only works with MappedDatasets that has metric<br>
> assigned."<br><br>> Thus, I suppose that the mapping from the functional scans (and it's<br>> associated measures such as voxel size) are missing and the dataset I<br>> created is not a MappedDataset. Although I did not manage to create a<br>
> MappedDataset, also not after consulting your information on<br>> (<a href="http://www.pymvpa.org/api/mvpa.datasets.mapped.MappedDataset-class.html" target="_blank">http://www.pymvpa.org/api/mvpa.datasets.mapped.MappedDataset-class.html</a><br>
> )<br><br>> Do you have any suggestions?<br><br>> Btw, I'm still using the older package on Neurodebian (this analysis<br>> if for a revision and I prefer not to switch to a new version in<br>> between revisions ;) )<br>
<br>> Thanks in advance!<br><br>> Best,<br>> Nynke van der Laan<br><br></div><font color="#888888">--<br>=------------------------------------------------------------------=<br>Keep in touch                                     <a href="http://www.onerussian.com/" target="_blank">www.onerussian.com</a><br>
Yaroslav Halchenko                 <a href="http://www.ohloh.net/accounts/yarikoptic" target="_blank">www.ohloh.net/accounts/yarikoptic</a><br></font>
<div>
<div></div>
<div class="h5"><br>_______________________________________________<br>Pkg-ExpPsy-PyMVPA mailing list<br><a href="mailto:Pkg-ExpPsy-PyMVPA@lists.alioth.debian.org">Pkg-ExpPsy-PyMVPA@lists.alioth.debian.org</a><br><a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa</a><br>
</div></div></blockquote></div><br>