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