spinalcordtoolbox / spinalcordtoolbox

Comprehensive and open-source library of analysis tools for MRI of the spinal cord.
https://spinalcordtoolbox.com
GNU Lesser General Public License v3.0
193 stars 101 forks source link

issue with -method auto -o test.nii.gz #551

Closed jcohenadad closed 8 years ago

jcohenadad commented 8 years ago

data:

sct_example_data/dmri

syntax:

sct_get_centerline -i dwi_moco_mean.nii.gz -method auto -t t1 -o test.nii.gz

error:

WARNING : Option string does not exist and will have no effect on the execution of the script
Type -h to see supported options
Execution of the SCAD algorithm in /Users/julien/data/temp/sct_example_data/dmri
mkdir scad_output_151002121948/
sct_convert -i dwi_moco_mean.nii.gz -o /Users/julien/data/temp/sct_example_data/dmri/scad_output_151002121948/raw.nii.gz
mkdir tmp.151002121948/
sct_convert -i dwi_moco_mean.nii.gz -o tmp.151002121948/raw.nii
isct_vesselness -i raw.nii -t t1 -radius 4
Traceback (most recent call last):
  File "/Users/julien/code/spinalcordtoolbox/bin/sct_get_centerline", line 1098, in <module>
    scad.execute()
  File "/Users/julien/code/spinalcordtoolbox/bin/sct_get_centerline", line 951, in execute
    conv.convert(path_tmp+img.file_name+img.ext, self.output_filename)
  File "/Users/julien/code/spinalcordtoolbox/scripts/sct_convert.py", line 61, in convert
    printv('sct_convert -i '+fname_in+' -o '+fname_out, verbose, 'code')
TypeError: cannot concatenate 'str' and 'NoneType' objects
ComtoisOlivier commented 8 years ago

Fixed in 2e658ee1c5e697a1b3bc8e1beae4568684668d17