From 76e43921ea4b604d4da41912bde55eb659455e45 Mon Sep 17 00:00:00 2001 From: Chris Gorgolewski Date: Thu, 2 Mar 2017 15:27:56 -0800 Subject: [PATCH] make outlier testing deterministic --- nipype/algorithms/tests/test_confounds.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nipype/algorithms/tests/test_confounds.py b/nipype/algorithms/tests/test_confounds.py index a4542d75d0..4eaa9dc073 100644 --- a/nipype/algorithms/tests/test_confounds.py +++ b/nipype/algorithms/tests/test_confounds.py @@ -67,6 +67,7 @@ def test_dvars(tmpdir): assert (np.abs(dv1[:, 2] - ground_truth[:, 2]).sum() / len(dv1)) < 0.05 def test_outliers(tmpdir): + np.random.seed(0) in_data = np.random.randn(100) in_data[0] += 10