<div dir="ltr"><div>Thanks for the heads up!  Just upgrading nipype didn't work but I found a page full of packages I was supposed to have (this one: <a href="http://miykael.github.io/nipype-beginner-s-guide/installation.html">http://miykael.github.io/nipype-beginner-s-guide/installation.html</a>) and I upgraded all of them and now it works!  Sorry I wrote to the wrong list.  <br><br></div><div>Thanks again,<br></div><div>Katie<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 10, 2015 at 1:31 PM, Chris Filo Gorgolewski <span dir="ltr"><<a href="mailto:krzysztof.gorgolewski@gmail.com" target="_blank">krzysztof.gorgolewski@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div>Do you get the same error with the most up to date version of Nipype (0.10)?</div><div><br></div><div>Best,</div><div>Chris</div><div><br></div><div>PS please use <a href="http://neurostars.org" target="_blank">neurostars.org</a> for user support next time.</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Aug 10, 2015 at 10:26 AM, Katie Surrence <span dir="ltr"><<a href="mailto:katiesurrence@gmail.com" target="_blank">katiesurrence@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div><div><div><div><div>Dear Python neuroimagers,<br><br></div>I'm brand new to NiPype, so excuse the very basic question.  <br><br></div>I am trying to use the FmriRealign4d algorithm.  <br><br></div>Based on the example <a href="http://nipy.sourceforge.net/nipype/interfaces/generated/nipype.interfaces.nipy.preprocess.html" target="_blank">here</a> I wrote the following to try to slice time correct/realign a single run:<br><br>_____________________________<br><br>from nipype.interfaces.nipy.preprocess import FmriRealign4d<br>import os<br><br>pth = "/media/truecrypt1/SocCog/tmp1/run1L2"<br><br>infile = os.path.join(pth, '4D.nii')<br><br>realigner = FmriRealign4d()<br>realigner.inputs.in_file = [infile]<br><a href="http://realigner.inputs.tr" target="_blank">realigner.inputs.tr</a> = 2.2<br>realigner.inputs.slice_order = range(0, 36, 2) + range(1, 35, 2)<br>realigner.inputs.time_interp = True<br>res = realigner.run()<br><br><br>_________________________________<br><br><br></div>(I added the explicit definition of time_interp because I got an error when I didn't.)<br><br></div><div>Here's the new error:<br><br>_________________________________________<br><br>/usr/local/lib/python2.7/dist-<div dir="ltr">packages/nipype-0.9.2-py2.7.egg/nipype/interfaces/base.py:376: UserWarning: Input slice_order requires inputs: time_interp<br>  warn(msg)<br>Traceback (most recent call last):<br>  File "/home/katie/ks_scripts/python_scripts/pimriscripts/real4d.py", line 17, in <module><br>    res = realigner.run()<br>  File "/usr/local/lib/python2.7/dist-packages/nipype-0.9.2-py2.7.egg/nipype/interfaces/base.py", line 946, in run<br>    runtime = self._run_interface(runtime)<br>  File "/usr/local/lib/python2.7/dist-packages/nipype-0.9.2-py2.7.egg/nipype/interfaces/nipy/preprocess.py", line 162, in _run_interface<br>    start=self.inputs.start)<br>TypeError: __init__() takes at least 4 arguments (7 given)<br>Interface FmriRealign4d failed to run. <br><br>Process finished with exit code 1<br><br>_______________________________________+<br><div><div><img src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div></div><br></div><div><br></div>I
 tried following the error in the debugger and it's going so deep into 
such a complicated code base it seems very unlikely I'd be able to 
figure it out.  Does anyone have any idea how to make this run?  I know 
it's highly possible I'm doing something very obvious wrong.<br><br></div>Thanks very much for your help.<br><br></div>Best,<br></div>Katie<span><font color="#888888"><br clear="all"><div><div><div><div><br>-- <br><div><div dir="ltr"><div>Katie Surrence, M.S.</div><div>Research Coordinator<br>Social Cognition Laboratory<br></div>New York State Psychiatric Institute<br></div></div>
</div></div></div></div></font></span></div>
<br></div></div>_______________________________________________<br>
Neuroimaging mailing list<br>
<a href="mailto:Neuroimaging@python.org" target="_blank">Neuroimaging@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/neuroimaging" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/neuroimaging</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Neuroimaging mailing list<br>
<a href="mailto:Neuroimaging@python.org">Neuroimaging@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/neuroimaging" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/neuroimaging</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>Katie Surrence, M.S.</div><div>Research Coordinator<br>Social Cognition Laboratory<br></div>New York State Psychiatric Institute<br></div></div>
</div>