Skip to content

Commit 5464084

Browse files
committed
switched to :: blocks
1 parent 79016ef commit 5464084

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

nipype/pipeline/engine.py

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,26 +1144,29 @@ def __init__(self, interface, name, iterables=None, itersource=None,
11441144
Input field and list to iterate using the pipeline engine
11451145
for example to iterate over different frac values in fsl.Bet()
11461146
for a single field the input can be a tuple, otherwise a list
1147-
of tuples
1148-
node.iterables = ('frac',[0.5,0.6,0.7])
1149-
node.iterables = [('fwhm',[2,4]),('fieldx',[0.5,0.6,0.7])]
1150-
1147+
of tuples ::
1148+
1149+
node.iterables = ('frac',[0.5,0.6,0.7])
1150+
node.iterables = [('fwhm',[2,4]),('fieldx',[0.5,0.6,0.7])]
1151+
11511152
If this node has an itersource, then the iterables values
11521153
is a dictionary which maps an iterable source field value
1153-
to the target iterables field values, e.g.:
1154-
inputspec.iterables = ('images',['img1.nii', 'img2.nii']])
1155-
node.itersource = ('inputspec', ['frac'])
1156-
node.iterables = ('frac', {'img1.nii': [0.5, 0.6],
1157-
img2.nii': [0.6, 0.7]})
1158-
1154+
to the target iterables field values, e.g.: ::
1155+
1156+
inputspec.iterables = ('images',['img1.nii', 'img2.nii']])
1157+
node.itersource = ('inputspec', ['frac'])
1158+
node.iterables = ('frac', {'img1.nii': [0.5, 0.6],
1159+
'img2.nii': [0.6, 0.7]})
1160+
11591161
If this node's synchronize flag is set, then an alternate
11601162
form of the iterables is a [fields, values] list, where
11611163
fields is the list of iterated fields and values is the
1162-
list of value tuples for the given fields, e.g.:
1163-
node.synchronize = True
1164-
node.iterables = [('frac', 'threshold'),
1165-
[(0.5, True),
1166-
(0.6, False)]]
1164+
list of value tuples for the given fields, e.g.: ::
1165+
1166+
node.synchronize = True
1167+
node.iterables = [('frac', 'threshold'),
1168+
[(0.5, True),
1169+
(0.6, False)]]
11671170
11681171
itersource: tuple
11691172
The (name, fields) iterables source which specifies the name

0 commit comments

Comments
 (0)