<div dir="ltr">Hello all,<div><br></div><div>I have the following newbie question:</div><div><br></div><div>--Can one do regular python operations such as shuffling trials (or excluding trials with extreme outlier values) after loading up a dataset (nifti & targets) usingĀ <i>mvpa2.datasets.mri.fmri_dataset</i>?</div><div><br></div><div>I assumed so, but upon trying to shuffle trials of a given condition using numpy:</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><b>np.random.shuffle(ds[ds.targets==1])</b></div><div><br></div></blockquote>I get the following error message:<div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><b><i>TypeError: 'Dataset' object does not support item assignment</i></b></div></div><div><br></div></blockquote><div>Thoughts or suggestions on how to go about this?</div></div><div><br></div><div>Thanks in advance for your help,</div><div><br></div><div>Regina</div></div>