Skip to content

Commit f7fe305

Browse files
committed
back to returning cid in insert
1 parent 43c7694 commit f7fe305

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/pipeline/engine.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@ def __init__(self, name, base_dir=None, fields_from=None,
13081308
self._outputnode = Node(CollateInterface(fields=output_names), name='outputnode')
13091309

13101310
def get_cid(self, name):
1311-
return self.cids[name]
1311+
return self._cids[name]
13121312

13131313
def insert(self, workflow):
13141314
"""
@@ -1341,6 +1341,7 @@ def insert(self, workflow):
13411341
self.connect([('in', workflow), (workflow, self._outnodes[ckey]),
13421342
(self._outnodes[ckey], 'out',
13431343
[(key, '%s_%s' % (childname, key)) for key in self.output_names])])
1344+
return cid
13441345

13451346

13461347
class Node(WorkflowBase):

0 commit comments

Comments
 (0)