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 32e724c commit 0af73d0Copy full SHA for 0af73d0
nipype/pipeline/engine/workflows.py
@@ -700,8 +700,13 @@ def _check_nodes(self, nodes):
700
for node in nodes:
701
if node.name in node_names:
702
idx = node_names.index(node.name)
703
- if node_lineage[idx] in [node._hierarchy, self.name]:
704
- raise IOError('Duplicate node name %s found.' % node.name)
+ try:
+ this_node_lineage = node_lineage[idx]
705
+ except IndexError:
706
+ raise IOError('Duplicate and unconnected node name %s found.' % node.name)
707
+ else:
708
+ if this_node_lineage in [node._hierarchy, self.name]:
709
+ raise IOError('Duplicate node name %s found.' % node.name)
710
else:
711
node_names.append(node.name)
712
0 commit comments