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 a87da3c commit 9ec3985Copy full SHA for 9ec3985
nipype/interfaces/utility.py
@@ -164,10 +164,8 @@ def _list_outputs(self):
164
else:
165
out.append(value)
166
167
- for i in range(len(filename_to_list(values[0]))):
168
- out.insert(i, [])
169
- for value in values:
170
- out[i].append(filename_to_list(value)[i])
+ lists = [filename_to_list(val) for val in values]
+ out = [[val[i] for val in lists] for i in range(len(lists[0]))]
171
if out:
172
outputs['out'] = out
173
return outputs
0 commit comments