brainlife / app-freesurfer-stats

0 stars 1 forks source link

ValueError: could not convert string to float: 'volume' #2

Open soichih opened 4 years ago

soichih commented 4 years ago

I saw a bunch of this error happening on Bigred3. On master branch.

Traceback (most recent call last):
  File "/N/project/brainlife/workdir/prod-bigred3/5e7e1e5f3138f7a36d314e85/5f8d95b4c7adcb8bb01474f7/create_data_csv.py", line 44, in <module>
    [lh_wm_vol,rh_wm_vol,tot_wm_vol] = extract_wm_stats(white_matter_stats)
  File "/N/project/brainlife/workdir/prod-bigred3/5e7e1e5f3138f7a36d314e85/5f8d95b4c7adcb8bb01474f7/create_data_csv.py", line 22, in extract_wm_stats
    tot_wm_vol = float(tot.split()[9])
ValueError: could not convert string to float: 'volume'

The input is freesurfer 7.1.0 (validated) output. And user is using "aparc" for parcellation parameter. User affected is "Sergio Grueso Saez".