We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89b9856 commit a42439fCopy full SHA for a42439f
nipype/algorithms/tests/test_confounds.py
@@ -41,10 +41,14 @@ def test_dvars():
41
dvars = ComputeDVARS(in_file=example_data('ds003_sub-01_mc.nii.gz'),
42
in_mask=example_data('ds003_sub-01_mc_brainmask.nii.gz'),
43
save_all=True)
44
+
45
+ origdir = os.getcwd()
46
os.chdir(tempdir)
47
48
res = dvars.run()
49
50
dv1 = np.loadtxt(res.outputs.out_std)
51
yield assert_equal, (np.abs(dv1 - ground_truth).sum()/ len(dv1)) < 0.05, True
52
53
+ os.chdir(origdir)
54
rmtree(tempdir)
0 commit comments