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.
add_nodes
1 parent 0b49a70 commit 672a234Copy full SHA for 672a234
nipype/pipeline/engine/workflows.py
@@ -333,7 +333,7 @@ def add_nodes(self, nodes):
333
newnodes = []
334
all_nodes = self._get_all_nodes()
335
for node in nodes:
336
- if self._has_node(node):
+ if node in all_nodes:
337
raise IOError("Node %s already exists in the workflow" % node)
338
if isinstance(node, Workflow):
339
for subnode in node._get_all_nodes():
0 commit comments