Skip to content

Commit ebe0311

Browse files
committed
fixing doctests
1 parent d1ea93e commit ebe0311

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

nipype/interfaces/utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ def __setattr__(self, key, value):
480480

481481
class CollateInterface(IOBase):
482482
"""
483-
A simple interface to multiplex inputs through a unique output set.
483+
A simple interface to multiplex inputs through a unique output node.
484484
Channel is defined by the prefix of the fields. In order to avoid
485485
inconsistencies, output fields should be defined forehand at initialization..
486486

nipype/pipeline/engine.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,21 +1261,19 @@ class GraftWorkflow(InterfacedWorkflow):
12611261
-------
12621262
>>> import nipype.pipeline.engine as npe
12631263
>>> import nipype.interfaces.utility as niu
1264-
>>> from nipype.algorithms.metrics import ErrorMap
1264+
>>> from nipype.interfaces.fsl import Threshold
12651265
>>> 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') ])
12711270
>>> wf2 = wf1.clone(name='testname2')
12721271
>>> wf = npe.GraftWorkflow(name='graft', fields_from=wf1)
12731272
>>> wf.insert(wf1)
12741273
>>> 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
12771276
>>> wf.write_graph(format='pdf') # doctest: +SKIP
1278-
>>> wf.run() # doctest: +SKIP
12791277
"""
12801278
_children = dict()
12811279
_outnodes = dict()

0 commit comments

Comments
 (0)