Skip to content

Commit 1e50c12

Browse files
committed
Fix whitespace in a way that actually works.
Apparently multiline examples are not allowed, but this at least gets rid of the whitespace between arguments in the documentation.
1 parent 7072042 commit 1e50c12

File tree

1 file changed

+14
-30
lines changed

1 file changed

+14
-30
lines changed

nipype/algorithms/modelgen.py

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -261,28 +261,18 @@ class SpecifyModel(BaseInterface):
261261
>>> s.inputs.functional_runs = ['functional2.nii', 'functional3.nii']
262262
>>> s.inputs.time_repetition = 6
263263
>>> s.inputs.high_pass_filter_cutoff = 128.
264-
>>> info = [Bunch(conditions=['cond1'],
265-
onsets=[[2, 50, 100, 180]],
266-
durations=[[1]]),
267-
Bunch(conditions=['cond1'],
268-
onsets=[[30, 40, 100, 150]],
269-
durations=[[1]])]
264+
>>> info = [Bunch(conditions=['cond1'], onsets=[[2, 50, 100, 180]], \
265+
durations=[[1]]), Bunch(conditions=['cond1'], onsets=[[30, 40, 100, 150]], \
266+
durations=[[1]])]
270267
>>> s.inputs.subject_info = info
271268
272269
Using pmod:
273270
274-
>>> info = [Bunch(conditions=['cond1', 'cond2'],
275-
onsets=[[2, 50],[100, 180]],
276-
durations=[[0],[0]],
277-
pmod=[Bunch(name=['amp'], poly=[2],
278-
param=[[1, 2]]),
279-
None]),
280-
Bunch(conditions=['cond1', 'cond2'],
281-
onsets=[[20, 120],[80, 160]],
282-
durations=[[0],[0]],
283-
pmod=[Bunch(name=['amp'], poly=[2],
284-
param=[[1, 2]]),
285-
None])]
271+
>>> info = [Bunch(conditions=['cond1', 'cond2'], onsets=[[2, 50],[100, 180]], \
272+
durations=[[0],[0]], pmod=[Bunch(name=['amp'], poly=[2], param=[[1, 2]]), \
273+
None]), Bunch(conditions=['cond1', 'cond2'], onsets=[[20, 120],[80, 160]], \
274+
durations=[[0],[0]], pmod=[Bunch(name=['amp'], poly=[2], param=[[1, 2]]), \
275+
None])]
286276
>>> s.inputs.subject_info = info
287277
288278
"""
@@ -448,12 +438,9 @@ class SpecifySPMModel(SpecifyModel):
448438
>>> s.inputs.functional_runs = ['functional2.nii', 'functional3.nii']
449439
>>> s.inputs.time_repetition = 6
450440
>>> s.inputs.concatenate_runs = True
451-
>>> info = [Bunch(conditions=['cond1'],
452-
onsets=[[2, 50, 100, 180]],
453-
durations=[[1]]),
454-
Bunch(conditions=['cond1'],
455-
onsets=[[30, 40, 100, 150]],
456-
durations=[[1]])]
441+
>>> info = [Bunch(conditions=['cond1'], onsets=[[2, 50, 100, 180]], \
442+
durations=[[1]]), Bunch(conditions=['cond1'], onsets=[[30, 40, 100, 150]], \
443+
durations=[[1]])]
457444
>>> s.inputs.subject_info = info
458445
459446
"""
@@ -616,12 +603,9 @@ class SpecifySparseModel(SpecifyModel):
616603
>>> s.inputs.time_acquisition = 2
617604
>>> s.inputs.high_pass_filter_cutoff = 128.
618605
>>> s.inputs.model_hrf = True
619-
>>> info = [Bunch(conditions=['cond1'],
620-
onsets=[[2, 50, 100, 180]],
621-
durations=[[1]]),
622-
Bunch(conditions=['cond1'],
623-
onsets=[[30, 40, 100, 150]],
624-
durations=[[1]])]
606+
>>> info = [Bunch(conditions=['cond1'], onsets=[[2, 50, 100, 180]], \
607+
durations=[[1]]), Bunch(conditions=['cond1'], onsets=[[30, 40, 100, 150]], \
608+
durations=[[1]])]
625609
>>> s.inputs.subject_info = info
626610
627611
"""

0 commit comments

Comments
 (0)