Skip to content

Commit 4ceb4dd

Browse files
committed
FIX: Check for exact matches and dotted prefixes
1 parent ac6c2c9 commit 4ceb4dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/pipeline/engine/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,8 @@ def make_field_func(*pair):
10501050
expansions = defaultdict(list)
10511051
for node in graph_in.nodes():
10521052
for src_id in list(old_edge_dict.keys()):
1053-
if node.itername.startswith(src_id + '.'):
1053+
if any((node.itername.startswith(src_id + '.'),
1054+
node.itername == src_id)):
10541055
expansions[src_id].append(node)
10551056
for in_id, in_nodes in list(expansions.items()):
10561057
logger.debug("The join node %s input %s was expanded"

0 commit comments

Comments
 (0)