@@ -149,16 +149,18 @@ class RealignInputSpec(SPMCommandInputSpec):
149
149
150
150
class RealignOutputSpec (TraitedSpec ):
151
151
mean_image = File (exists = True , desc = 'Mean image file from the realignment' )
152
- in_files = OutputMultiPath (traits .Either (traits .List (File (exists = True )),
152
+ modified_in_files = OutputMultiPath (traits .Either (traits .List (File (exists = True )),
153
153
File (exists = True )),
154
- desc = 'Copies of all files passed to in_files.\
155
- Headers will have been modified to align all\
156
- images with the first, or optionally to first\
157
- do that, extract a mean image, and re-align to\
158
- that mean image.' )
154
+ desc = 'Copies of all files passed to in_files.\
155
+ Headers will have been modified to align all\
156
+ images with the first, or optionally to first\
157
+ do that, extract a mean image, and re-align to\
158
+ that mean image.' )
159
159
realigned_files = OutputMultiPath (traits .Either (traits .List (File (exists = True )),
160
160
File (exists = True )),
161
- desc = 'Realigned files' )
161
+ desc = 'If jobtype is write or estwrite, these will be the\
162
+ resliced files. Otherwise, they will be copies of\
163
+ in_files that have had their headers rewritten.' )
162
164
realignment_parameters = OutputMultiPath (File (exists = True ),
163
165
desc = 'Estimated translation and rotation parameters' )
164
166
@@ -217,8 +219,10 @@ def _list_outputs(self):
217
219
use_ext = False ))
218
220
if not isinstance (imgf , list ) and func_is_3d (imgf ):
219
221
break
220
- if self .inputs .jobtype = "estimate" or self .inputs .jobtype = "estwrite" :
221
- outputs ['in_files' ] = self .inputs .in_files
222
+ if self .inputs .jobtype == "estimate" :
223
+ outputs ['realigned_files' ] = self .inputs .in_files
224
+ if self .inputs .jobtype == "estimate" or self .inputs .jobtype == "estwrite" :
225
+ outputs ['modified_in_files' ] = self .inputs .in_files
222
226
if self .inputs .jobtype == "write" or self .inputs .jobtype == "estwrite" :
223
227
if isinstance (self .inputs .in_files [0 ], list ):
224
228
first_image = self .inputs .in_files [0 ][0 ]
0 commit comments