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):
136
136
137
137
# check freesurfer version and set parameters
138
138
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 :
140
140
# assuming that dev is 6.0
141
141
fsvernum = 6.0
142
142
fs_version = 'v6.0'
@@ -153,7 +153,10 @@ def create_reconall_workflow(name="ReconAll", plugin_args=None):
153
153
if 'v5.3' in fs_version_full :
154
154
fs_version = 'v5.3'
155
155
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
157
160
print ("Warning: Workflow may not work properly if FREESURFER_HOME " +
158
161
"environmental variable is not set or if you are using an older " +
159
162
"version of FreeSurfer" )
You can’t perform that action at this time.
0 commit comments