Skip to content

Commit 6348862

Browse files
committed
increasing atol in the test
1 parent 6e53f01 commit 6348862

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/algorithms/tests/test_stats.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ def test_ActivationCount_normaldistr(tmpdir, threshold, above_thresh):
3232
tmpdir.chdir()
3333
in_files = ['{:d}.nii'.format(i) for i in range(3)]
3434
for fname in in_files:
35-
nb.Nifti1Image(np.random.normal(size=(50, 50, 50)),
35+
nb.Nifti1Image(np.random.normal(size=(100, 100, 100)),
3636
np.eye(4)).to_filename(fname)
3737

3838
acm = ActivationCount(in_files=in_files, threshold=threshold)
3939
res = acm.run()
4040
pos = nb.load(res.outputs.acm_pos)
4141
neg = nb.load(res.outputs.acm_neg)
42-
assert np.isclose(pos.get_data().mean(), above_thresh*1.e-2, rtol=0.1, atol=1.e-6)
43-
assert np.isclose(neg.get_data().mean(), above_thresh*1.e-2, rtol=0.1, atol=1.e-6)
42+
assert np.isclose(pos.get_data().mean(), above_thresh*1.e-2, rtol=0.1, atol=1.e-4)
43+
assert np.isclose(neg.get_data().mean(), above_thresh*1.e-2, rtol=0.1, atol=1.e-4)

0 commit comments

Comments
 (0)