@@ -406,8 +406,8 @@ def _list_outputs(self):
406
406
if not isinstance (imgf , list ) and func_is_3d (imgf ):
407
407
break
408
408
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"
411
411
or self .inputs .jobtype == "estwrite" ):
412
412
outputs ['modified_in_files' ] = self .inputs .in_files
413
413
if self .inputs .jobtype == "write" or self .inputs .jobtype == "estwrite" :
@@ -438,9 +438,10 @@ def _list_outputs(self):
438
438
439
439
440
440
class 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 ))),
444
445
field = 'data.scans' ,
445
446
mandatory = True ,
446
447
copyfile = True ,
@@ -595,8 +596,8 @@ class RealignUnwarp(SPMCommand):
595
596
596
597
>>> import nipype.interfaces.spm as spm
597
598
>>> 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'
600
601
>>> realignUnwarp.inputs.register_to_mean = True
601
602
>>> realignUnwarp.run() # doctest: +SKIP
602
603
0 commit comments