Error SCT 4.0.0 sct_dmri_compute_dti


Hello SCT Team,

I am incorporating SCT 4.0.0 into my analysis pipeline. I am getting an error when using sct_dmri_compute_dti and the -evecs option set to 1 or 0. If I run the following:

sct_dmri_compute_dti -i ${subject}_ses-${session}spinalcord_dwi_crop_moco.nii.gz -bval ${subject}_ses-${session}spinalcord_dwi.bval -bvec ${subject}_ses-${session}spinalcord_dwi.bvec -method restore -evecs 1

I get the following error:

sct_dmri_compute_dti: error: argument -evecs: invalid choice: ‘1’ (choose from 0, 1)

If I run the command above in SCT 3.2.7, the command runs without error.

I am using an Ubuntu 18.04.2 LTS System.




Hi Ken,

We recently updated the argument parsing module and this is causing the problem. An issue has just been opened here and it will be quickly fixed in 4.0.1.

Sorry for the inconvenience and thank you for reporting the bug.



Hi Ken,
The issue has now been fixed in 4.0.1, which you can download here: