Skip to content

Commit 4f56fa7

Browse files
committed
FIX: make tests pass
1 parent 0cf16f1 commit 4f56fa7

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

nipype/interfaces/spm/preprocess.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,7 @@ class NewSegment(SPMCommand):
17311731
"""Use spm_preproc8 (New Segment) to separate structural images into
17321732
different tissue classes. Supports multiple modalities.
17331733
1734-
NOTE: This interface supports multi-channel inputs
1734+
NOTE: This interface supports multichannel inputs
17351735
17361736
http://www.fil.ion.ucl.ac.uk/spm/doc/manual.pdf#page=43
17371737
@@ -1746,8 +1746,8 @@ class NewSegment(SPMCommand):
17461746
TPM.nii should be replaced by /path/to/spm8/toolbox/Seg/TPM.nii
17471747
17481748
>>> seg = NewSegment()
1749-
>>> channel1= ('t1w.nii',(0.0001, 60, (True, True)))
1750-
>>> channel2= ('t2w.nii',(0.0001, 60, (True, True)))
1749+
>>> channel1= ('T1.nii',(0.0001, 60, (True, True)))
1750+
>>> channel2= ('T2.nii',(0.0001, 60, (True, True)))
17511751
>>> seg.inputs.channels = [channel1, channel2]
17521752
>>> tissue1 = (('TPM.nii', 1), 2, (True,True), (False, False))
17531753
>>> tissue2 = (('TPM.nii', 2), 2, (True,True), (False, False))

nipype/interfaces/spm/tests/test_auto_NewSegment.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
def test_NewSegment_inputs():
66
input_map = dict(
77
affine_regularization=dict(field="warp.affreg",),
8-
channel_files=dict(copyfile=False, field="channel", mandatory=True,),
9-
channel_info=dict(field="channel",),
8+
channels=dict(field="channel",),
109
matlab_cmd=dict(),
1110
mfile=dict(usedefault=True,),
1211
paths=dict(),

nipype/testing/data/T2.nii

Whitespace-only changes.

0 commit comments

Comments
 (0)