@@ -1261,21 +1261,19 @@ class GraftWorkflow(InterfacedWorkflow):
1261
1261
-------
1262
1262
>>> import nipype.pipeline.engine as npe
1263
1263
>>> import nipype.interfaces.utility as niu
1264
- >>> from nipype.algorithms.metrics import ErrorMap
1264
+ >>> from nipype.interfaces.fsl import Threshold
1265
1265
>>> from nipype.interfaces.utility import IdentityInterface
1266
- >>> wf1 = npe.InterfacedWorkflow(name='testname1', input_names=['in_ref',
1267
- >>> 'in_tst', 'mask'],
1268
- >>> output_names=['out_map'])
1269
- >>> errormap = npe.Node(ErrorMap(), name='internalnode')
1270
- >>> wf1.connect([ ('in', errormap), (errormap, 'out') ])
1266
+ >>> wf1 = npe.InterfacedWorkflow(name='testname1', input_names=['in_file', \
1267
+ 'thresh'], output_names=['out_file'])
1268
+ >>> node = npe.Node(Threshold(), name='internalnode')
1269
+ >>> wf1.connect([ ('in', node), (node, 'out') ])
1271
1270
>>> wf2 = wf1.clone(name='testname2')
1272
1271
>>> wf = npe.GraftWorkflow(name='graft', fields_from=wf1)
1273
1272
>>> wf.insert(wf1)
1274
1273
>>> wf.insert(wf2)
1275
- >>> wf.inputs.in_ref = 'reference.nii'
1276
- >>> wf.inputs.in_tst = 'test.nii'
1274
+ >>> wf.inputs.in_file = 'reference.nii'
1275
+ >>> wf.inputs.thres = 1.0
1277
1276
>>> wf.write_graph(format='pdf') # doctest: +SKIP
1278
- >>> wf.run() # doctest: +SKIP
1279
1277
"""
1280
1278
_children = dict ()
1281
1279
_outnodes = dict ()
0 commit comments