Skip to content

Commit 600bd47

Browse files
committed
Fixed test, and checked out
1 parent f27ea7c commit 600bd47

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

nipype/algorithms/misc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,8 +1229,8 @@ class NormalizeProbabilityMapSet(BaseInterface):
12291229
12301230
>>> import nipype.algorithms.misc as misc
12311231
>>> normalize = misc.NormalizeProbabilityMapSet()
1232-
>>> normalize.inputs.in_files = [ 'csf.nii', 'wm.nii', 'gm.nii' ]
1233-
>>> normalize.inputs.in_mask = [ 'brain.nii' ]
1232+
>>> normalize.inputs.in_files = [ 'tpm_00.nii.gz', 'tpm_01.nii.gz', 'tpm_02.nii.gz' ]
1233+
>>> normalize.inputs.in_mask = [ 'tpms_msk.nii.gz' ]
12341234
>>> normalize.run() # doctest: +SKIP
12351235
"""
12361236
input_spec = NormalizeProbabilityMapSetInputSpec

nipype/algorithms/tests/test_normalize_tpms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# @Author: oesteban - [email protected]
77
# @Date: 2014-05-28 17:57:20
88
# @Last Modified by: oesteban
9-
# @Last Modified time: 2014-05-29 13:23:56
9+
# @Last Modified time: 2014-05-29 13:43:09
1010

1111
import os
1212
from shutil import rmtree
@@ -55,6 +55,6 @@ def test_normalize_tpms():
5555
yield assert_equal, np.all( normdata[mskdata==0]==0 ), True
5656
yield assert_equal, np.allclose( normdata, mapdata[i] ), True
5757

58-
yield assert_equal, np.allclose( sumdata, mskdata ), True
58+
yield assert_equal, np.allclose(sumdata[sumdata>0.0], 1.0 ), True
5959

6060
rmtree(tempdir)

0 commit comments

Comments
 (0)