From 24f59ffdef77a95e765d21a19f390ca3be7f6afd Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Thu, 7 Dec 2023 16:16:43 +0000 Subject: [PATCH] TEST: vecreg unit test --- fsl/tests/test_wrappers/test_wrappers.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/fsl/tests/test_wrappers/test_wrappers.py b/fsl/tests/test_wrappers/test_wrappers.py index e48e9d6d..214584ab 100755 --- a/fsl/tests/test_wrappers/test_wrappers.py +++ b/fsl/tests/test_wrappers/test_wrappers.py @@ -541,6 +541,15 @@ def test_dtifit(): assert res.stdout[0] == exp +def test_vecreg(): + with testenv('vecreg') as vecreg: + res = fw.vecreg('in', 'out', 'ref', warpfield='warp', + premat='premat.mat', interp='sinc', m='mask') + exp = f'{vecreg} -i in -o out -r ref --warpfield=warp ' \ + '--premat=premat.mat --interp=sinc -m mask' + assert res.stdout[0] == exp + + def test_xfibres(): with testenv('xfibres') as xfibres: res = fw.xfibres('data', 'mask', 'bvecs', 'bvals', -- GitLab