Skip to content

Commit fa08d85

Browse files
FredLoneysatra
FredLoney
authored andcommitted
Make the transposed synchronize iterable values a list.
1 parent aab06f5 commit fa08d85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/pipeline/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,7 @@ def _standardize_iterables(node):
808808
if all((isinstance(item, str) and item in fields
809809
for item in first)):
810810
iterables = _transpose_iterables(first, last)
811+
811812
# Convert a tuple to a list
812813
if isinstance(iterables, tuple):
813814
iterables = [iterables]
@@ -847,7 +848,7 @@ def _transpose_iterables(fields, values):
847848
iterable (field: value list) pairs, suitable for setting
848849
a node iterables property.
849850
"""
850-
return zip(fields, [filter(lambda(v): v != None, transpose)
851+
return zip(fields, [filter(lambda(v): v != None, list(transpose))
851852
for transpose in zip(*values)])
852853

853854
def export_graph(graph_in, base_dir=None, show=False, use_execgraph=False,

0 commit comments

Comments
 (0)