Skip to content

Commit 4271c90

Browse files
committed
fix: spm_realign always reslices to the first volume even if register_to_mean rtm is set to True
1 parent 22ef063 commit 4271c90

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nipype/interfaces/spm/preprocess.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,13 @@ def _list_outputs(self):
225225
if os.path.exists(newfile):
226226
realigned_run.append(newfile)
227227
continue
228-
if idx==0 and i == 0 and not reg_to_mean and \
229-
func_is_3d(inner_imgf):
228+
if idx==0 and i == 0 and func_is_3d(inner_imgf):
230229
realigned_run.append(fname_presuffix(inner_imgf,
231230
prefix=''))
232231
else:
233232
realigned_run = fname_presuffix(imgf,
234233
prefix=self.inputs.out_prefix)
235-
if idx==0 and not reg_to_mean and func_is_3d(imgf):
234+
if idx==0 and func_is_3d(imgf):
236235
realigned_run = fname_presuffix(imgf, prefix='')
237236
outputs['realigned_files'].append(realigned_run)
238237
return outputs

0 commit comments

Comments
 (0)