From e66ade2bf51edb716d76384416d81ce7abe4df79 Mon Sep 17 00:00:00 2001
From: Michiel Cottaar <MichielCottaar@protonmail.com>
Date: Tue, 28 Jul 2020 08:59:16 +0100
Subject: [PATCH] Also place bvecs in the OUTDIR

---
 unit_tests/fdt/dtifit/feedsRun | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/unit_tests/fdt/dtifit/feedsRun b/unit_tests/fdt/dtifit/feedsRun
index 4e58e7a..443a190 100755
--- a/unit_tests/fdt/dtifit/feedsRun
+++ b/unit_tests/fdt/dtifit/feedsRun
@@ -68,8 +68,9 @@ def gen_data():
                 bvals[25:] = 2000.
             bvals[::10] = 0.
 
-            run(['gps', '--ndir=50', '--out=bvecs'], check=True)
-            bvecs = np.genfromtxt('bvecs')
+            bvecs_fn = np.genfromtxt(os.path.join(OUTDIR, "bvecs"))
+            run(['gps', '--ndir=50', '--out={}'.format(bvecs_fn)], check=True)
+            bvecs = np.genfromtxt(bvecs_fn)
             assert bvecs.shape == (50, 3), f"GPS produced bvecs-file with shape {bvecs.shape} rather than the expected (50, 3)"
             testing.assert_allclose((bvecs ** 2).sum(-1), 1.)
 
-- 
GitLab