Skip to content
Snippets Groups Projects
Commit 3a561fab authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

TEST: unit test for bedpostx_postproc wrapper

parent b19efeab
No related branches found
No related tags found
No related merge requests found
...@@ -578,6 +578,15 @@ def test_split_parts_gpu(): ...@@ -578,6 +578,15 @@ def test_split_parts_gpu():
assert res.stdout[0] == exp assert res.stdout[0] == exp
def test_bedpostx_postproc():
with testenv('bedpostx_postproc.sh') as bpg:
res = fw.bedpostx_postproc('data', 'mask', 'bvecs', 'bvals',
100, 10, 'subdir', 'bindir', nf=20)
exp = f'{bpg} --data=data --mask=mask --bvecs=bvecs --bvals=bvals ' \
'--nf=20 100 10 subdir bindir'
assert res.stdout[0] == exp
def test_bedpostx_postproc_gpu(): def test_bedpostx_postproc_gpu():
with testenv('bedpostx_postproc_gpu.sh') as bpg: with testenv('bedpostx_postproc_gpu.sh') as bpg:
res = fw.bedpostx_postproc_gpu('data', 'mask', 'bvecs', 'bvals', res = fw.bedpostx_postproc_gpu('data', 'mask', 'bvecs', 'bvals',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment