Skip to content

Commit 393f083

Browse files
authored
skip headers
1 parent 929226a commit 393f083

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/algorithms/tests/test_confounds.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_fd():
3131
yield assert_in, 'FramewiseDisplacement', line
3232
break
3333

34-
yield assert_true, np.allclose(ground_truth, np.loadtxt(res.outputs.out_file), atol=.16)
34+
yield assert_true, np.allclose(ground_truth, np.loadtxt(res.outputs.out_file), atol=.16, skiprows=1)
3535
yield assert_true, np.abs(ground_truth.mean() - res.outputs.fd_average) < 1e-2
3636

3737
rmtree(tempdir)
@@ -49,7 +49,7 @@ def test_dvars():
4949

5050
res = dvars.run()
5151

52-
dv1 = np.loadtxt(res.outputs.out_std)
52+
dv1 = np.loadtxt(res.outputs.out_std, skiprows=1)
5353
yield assert_equal, (np.abs(dv1 - ground_truth).sum()/ len(dv1)) < 0.05, True
5454

5555
os.chdir(origdir)

0 commit comments

Comments
 (0)