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 415653c commit 12be718Copy full SHA for 12be718
nipype/interfaces/utility/base.py
@@ -156,10 +156,8 @@ def _list_outputs(self):
156
else:
157
out.append(value)
158
159
- for i in range(len(filename_to_list(values[0]))):
160
- out.insert(i, [])
161
- for value in values:
162
- 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]))]
163
if out:
164
outputs['out'] = out
165
return outputs
0 commit comments