<div>Many thanks for letting me know that the firt two lines are redundent. </div>
<div>I'll later on just type from mvpa.suite import * only. </div>
<div>Any way, enclosed is the output. </div>
<div> </div>
<div> Thanks, </div>
<div> <br><br></div>
<div class="gmail_quote">On Mon, Dec 29, 2008 at 11:01 AM, Michael Hanke <span dir="ltr"><<a href="mailto:michael.hanke@gmail.com">michael.hanke@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">On Mon, Dec 29, 2008 at 10:37:43AM -0500, Yune Lee wrote:<br>> Hi, Michael<br>><br>> Here is the code for defining my dataset.<br>> -----------------------------------------------------------------------<br>
> import numpy as N<br>> from nifti import *<br>> from mvpa.suite import *<br></div>Tiny note: The last line implies the first two -- but it doesn't hurt ;-)<br>
<div class="Ih2E3d"><br>> #load nifti dataset<br>> attr = SampleAttributes('post_AvB_onsets.txt')<br>> dataset = NiftiDataset(samples='wrbold_25jun08MG.nii.gz',<br>> labels=attr.labels, chunks=attr.chunks, mask='mask_25jun08MG.nii.gz')<br>
> -----------------------------------------------------------------------------------------------------------------------<br>> I'm not sure what you mean by header after the file name in<br>> nifti.NiftiImage(<PUT FILENAME OF YOUR INPUT NIFTI HERE>).header<br>
> I tried 'nii.gz', 'nii', and 'hdr' but they didn't work.<br>> Let me know. Thanks.<br></div>Just execute this code:<br><br><br> >>> import nifti<br> >>> nifti.NiftiImage('wrbold_25jun08MG.nii.gz').header<br>
<div>
<div></div>
<div class="Wj3C7c"><br>Michael<br><br><br>--<br>GPG key: 1024D/3144BE0F Michael Hanke<br><a href="http://apsy.gse.uni-magdeburg.de/hanke" target="_blank">http://apsy.gse.uni-magdeburg.de/hanke</a><br>ICQ: 48230050<br><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/mailman/listinfo/pkg-exppsy-pymvpa" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/pkg-exppsy-pymvpa</a><br>
</div></div></blockquote></div><br>