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.
1 parent a80b3bf commit d761700Copy full SHA for d761700
nipype/interfaces/spm/preprocess.py
@@ -240,18 +240,10 @@ def _list_outputs(self):
240
for i, inner_imgf in enumerate(filename_to_list(imgf)):
241
newfile = fname_presuffix(inner_imgf,
242
prefix=self.inputs.out_prefix)
243
- if os.path.exists(newfile):
244
- realigned_run.append(newfile)
245
- continue
246
- if (idx == 0) and (i == 0) and \
247
- func_is_3d(inner_imgf):
248
- realigned_run.append(fname_presuffix(inner_imgf,
249
- prefix=''))
+ realigned_run.append(newfile)
250
else:
251
realigned_run = fname_presuffix(imgf,
252
253
- if (idx == 0) and func_is_3d(imgf):
254
- realigned_run = fname_presuffix(imgf, prefix='')
255
outputs['realigned_files'].append(realigned_run)
256
return outputs
257
0 commit comments