Skip to content

Commit d761700

Browse files
committed
This old code was causing problems. See: https://neurostars.org/p/3047/
1 parent a80b3bf commit d761700

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

nipype/interfaces/spm/preprocess.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -240,18 +240,10 @@ def _list_outputs(self):
240240
for i, inner_imgf in enumerate(filename_to_list(imgf)):
241241
newfile = fname_presuffix(inner_imgf,
242242
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=''))
243+
realigned_run.append(newfile)
250244
else:
251245
realigned_run = fname_presuffix(imgf,
252246
prefix=self.inputs.out_prefix)
253-
if (idx == 0) and func_is_3d(imgf):
254-
realigned_run = fname_presuffix(imgf, prefix='')
255247
outputs['realigned_files'].append(realigned_run)
256248
return outputs
257249

0 commit comments

Comments
 (0)