We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5af03cb + 1dc479e commit 4d6e17dCopy full SHA for 4d6e17d
nipype/interfaces/spm/preprocess.py
@@ -212,12 +212,15 @@ def _list_outputs(self):
212
if resliced_mean:
213
outputs['mean_image'] = fname_presuffix(first_image, prefix='mean')
214
215
+ index_start = 0
216
+ if self.inputs.write_which[0]<2:
217
+ index_start = 1
218
if resliced_all:
219
outputs['realigned_files'] = []
220
for imgf in filename_to_list(self.inputs.in_files):
221
realigned_run = []
222
if isinstance(imgf,list):
- for inner_imgf in filename_to_list(imgf):
223
+ for inner_imgf[index_start:] in filename_to_list(imgf):
224
realigned_run.append(fname_presuffix(inner_imgf, prefix=self.inputs.out_prefix))
225
else:
226
realigned_run = fname_presuffix(imgf, prefix=self.inputs.out_prefix)
0 commit comments