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