File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
nipype/workflows/smri/freesurfer Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ def create_reconall_workflow(name="ReconAll", plugin_args=None):
136136
137137 # check freesurfer version and set parameters
138138 fs_version_full = Info .version ()
139- if 'v6.0' in fs_version_full or 'dev' in fs_version_full :
139+ if fs_version_full and 'v6.0' in fs_version_full or 'dev' in fs_version_full :
140140 # assuming that dev is 6.0
141141 fsvernum = 6.0
142142 fs_version = 'v6.0'
@@ -153,7 +153,10 @@ def create_reconall_workflow(name="ReconAll", plugin_args=None):
153153 if 'v5.3' in fs_version_full :
154154 fs_version = 'v5.3'
155155 else :
156- fs_vesion = fs_version_full .split ('-' )[- 1 ]
156+ if fs_version_full :
157+ fs_version = fs_version_full .split ('-' )[- 1 ]
158+ else :
159+ fs_version = 5.3 # assume version 5.3
157160 print ("Warning: Workflow may not work properly if FREESURFER_HOME " +
158161 "environmental variable is not set or if you are using an older " +
159162 "version of FreeSurfer" )
You can’t perform that action at this time.
0 commit comments