Skip to content

Commit

Permalink
Merge pull request #1000 from AlexVCaron/hotfix
Browse files Browse the repository at this point in the history
[FIX] Typo in scil_dti_metrics script
  • Loading branch information
arnaudbore committed Jun 21, 2024
2 parents cb9ef7c + 0f4d6e0 commit 920ec63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/scil_dti_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def main():

del tensor_vals, fiber_tensors, tensor_vals_reordered

if args.fa or args.RGB:
if args.fa or args.rgb:
FA = fractional_anisotropy(tenfit.evals)
FA[np.isnan(FA)] = 0
FA = np.clip(FA, 0, 1)
Expand Down
5 changes: 5 additions & 0 deletions scripts/tests/test_dti_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,8 @@ def test_execution_processing(script_runner, monkeypatch):
in_bval, in_bvec, '--not_all',
'--fa', 'fa.nii.gz', '--b0_threshold', '1', '-f')
assert not ret.success

ret = script_runner.run('scil_dti_metrics.py', in_dwi,
in_bval, in_bvec, '--not_all',
'--rgb', 'rgb.nii.gz', '-f')
assert ret.success

0 comments on commit 920ec63

Please sign in to comment.