Skip to content

Commit 0366859

Browse files
authored
Merge pull request #1859 from nipy/fix/outlier_deterministic
make outlier testing deterministic
2 parents e450340 + 76e4392 commit 0366859

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nipype/algorithms/tests/test_confounds.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def test_dvars(tmpdir):
6767
assert (np.abs(dv1[:, 2] - ground_truth[:, 2]).sum() / len(dv1)) < 0.05
6868

6969
def test_outliers(tmpdir):
70+
np.random.seed(0)
7071
in_data = np.random.randn(100)
7172
in_data[0] += 10
7273

0 commit comments

Comments
 (0)