Skip to content

Commit

Permalink
add temporary tests to show update is working
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudbore committed Mar 6, 2024
1 parent 243bde3 commit d8023df
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions scripts/tests/test_tractogram_commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,25 @@ def test_execution_commit_amico(script_runner):
'--iso_diff', '1.7E-3', '3.0E-3',
'--processes', '1')
assert ret.success

def test_execution_commit_amico_wo_mask(script_runner):
os.chdir(os.path.expanduser(tmp_dir.name))
in_tracking = os.path.join(get_home(), 'commit_amico',
'tracking.trk')
in_dwi = os.path.join(get_home(), 'commit_amico',
'dwi.nii.gz')
in_bval = os.path.join(get_home(), 'commit_amico',
'dwi.bval')
in_bvec = os.path.join(get_home(), 'commit_amico',
'dwi.bvec')
in_peaks = os.path.join(get_home(), 'commit_amico',
'peaks.nii.gz')
ret = script_runner.run('scil_tractogram_commit.py', in_tracking, in_dwi,
in_bval, in_bvec, 'results_bzs/',
'--b_thr', '30', '--nbr_dir', '500',
'--nbr_iter', '500', '--in_peaks', in_peaks,
'--para_diff', '1.7E-3',
'--perp_diff', '1.19E-3', '0.85E-3', '0.51E-3', '0.17E-3',
'--iso_diff', '1.7E-3', '3.0E-3',
'--processes', '1')
assert ret.success

0 comments on commit d8023df

Please sign in to comment.