Skip to content

Commit 56f8ebe

Browse files
committed
Convert generators to lists
1 parent c4a249a commit 56f8ebe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/pipeline/plugins/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,14 +519,14 @@ def run(self, graph, config, updatehash=False):
519519
pyfiles = []
520520
dependencies = {}
521521
self._config = config
522-
nodes = nx.topological_sort(graph)
522+
nodes = list(nx.topological_sort(graph))
523523
logger.debug('Creating executable python files for each node')
524524
for idx, node in enumerate(nodes):
525525
pyfiles.append(create_pyscript(node,
526526
updatehash=updatehash,
527527
store_exception=False))
528528
dependencies[idx] = [nodes.index(prevnode) for prevnode in
529-
graph.predecessors(node)]
529+
list(graph.predecessors(node))]
530530
self._submit_graph(pyfiles, dependencies, nodes)
531531

532532
def _get_args(self, node, keywords):

0 commit comments

Comments
 (0)