Skip to content

Commit 0731614

Browse files
committed
make the point of this var more clear.
1 parent e954f72 commit 0731614

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/interfaces/spm/preprocess.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ def _list_outputs(self):
206206
resliced_mean = self.inputs.write_which[1] > 0
207207
if isdefined(self.inputs.in_files):
208208
outputs['realignment_parameters'] = []
209-
outputs['in_files'] = self.inputs.in_files
210209
for imgf in self.inputs.in_files:
211210
if isinstance(imgf, list):
212211
tmp_imgf = imgf[0]
@@ -218,6 +217,8 @@ def _list_outputs(self):
218217
use_ext=False))
219218
if not isinstance(imgf, list) and func_is_3d(imgf):
220219
break
220+
if self.inputs.jobtype = "estimate" or self.inputs.jobtype = "estwrite":
221+
outputs['in_files'] = self.inputs.in_files
221222
if self.inputs.jobtype == "write" or self.inputs.jobtype == "estwrite":
222223
if isinstance(self.inputs.in_files[0], list):
223224
first_image = self.inputs.in_files[0][0]

0 commit comments

Comments
 (0)