@@ -1144,26 +1144,29 @@ def __init__(self, interface, name, iterables=None, itersource=None,
1144
1144
Input field and list to iterate using the pipeline engine
1145
1145
for example to iterate over different frac values in fsl.Bet()
1146
1146
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
+
1151
1152
If this node has an itersource, then the iterables values
1152
1153
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
+
1159
1161
If this node's synchronize flag is set, then an alternate
1160
1162
form of the iterables is a [fields, values] list, where
1161
1163
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)]]
1167
1170
1168
1171
itersource: tuple
1169
1172
The (name, fields) iterables source which specifies the name
0 commit comments