@@ -406,8 +406,8 @@ def _list_outputs(self):
406406 if not isinstance (imgf , list ) and func_is_3d (imgf ):
407407 break
408408 if self .inputs .jobtype == "estimate" :
409- outputs ['realigned_files' ] = self .inputs .in_file
410- s if (self .inputs .jobtype == "estimate"
409+ outputs ['realigned_files' ] = self .inputs .in_files
410+ if (self .inputs .jobtype == "estimate"
411411 or self .inputs .jobtype == "estwrite" ):
412412 outputs ['modified_in_files' ] = self .inputs .in_files
413413 if self .inputs .jobtype == "write" or self .inputs .jobtype == "estwrite" :
@@ -438,9 +438,10 @@ def _list_outputs(self):
438438
439439
440440class RealignUnwarpInputSpec (SPMCommandInputSpec ):
441- in_files = InputMultiPath (
442- traits .Either (traits .List (File (exists = True )),
443- File (exists = True )),
441+
442+ in_files = InputMultiObject (
443+ traits .Either (ImageFileSPM (exists = True ),
444+ traits .List (ImageFileSPM (exists = True ))),
444445 field = 'data.scans' ,
445446 mandatory = True ,
446447 copyfile = True ,
@@ -595,8 +596,8 @@ class RealignUnwarp(SPMCommand):
595596
596597 >>> import nipype.interfaces.spm as spm
597598 >>> realignUnwarp = spm.RealignUnwarp()
598- >>> realignUnwarp.inputs.in_files = ['func-run01 .nii', func-run02 .nii']
599- >>> realignUnwarp.inputs.phase_map = 'phasemap .vdm'
599+ >>> realignUnwarp.inputs.in_files = ['functional .nii', 'functional1 .nii']
600+ >>> realignUnwarp.inputs.phase_map = 'voxeldisplacemap .vdm'
600601 >>> realignUnwarp.inputs.register_to_mean = True
601602 >>> realignUnwarp.run() # doctest: +SKIP
602603
0 commit comments