@@ -82,7 +82,7 @@ def preproc_datagrabber(c,name='preproc_datagrabber'):
82
82
tsnr_stddev = '%s/preproc/tsnr/*tsnr_stddev.nii*' ,
83
83
reg_file = '%s/preproc/bbreg/*.dat' ,
84
84
mean_image = '%s/preproc/mean*/*.nii*' ,
85
- mask = '%s/preproc/mask/*_brainmask .nii' )
85
+ mask = '%s/preproc/mask/*/* .nii* ' )
86
86
datasource .inputs .template_args = dict (motion_parameters = [['subject_id' ]],
87
87
outlier_files = [['subject_id' ]],
88
88
art_norm = [['subject_id' ]],
@@ -97,7 +97,7 @@ def preproc_datagrabber(c,name='preproc_datagrabber'):
97
97
return datasource
98
98
99
99
100
- def start_config_table (c ):
100
+ def start_config_table (c , c_qa ):
101
101
table = []
102
102
table .append (['TR' ,str (c .TR )])
103
103
table .append (['Slice Order' ,str (c .SliceOrder )])
@@ -110,9 +110,9 @@ def start_config_table(c):
110
110
table .append (['Art: z thresh' ,str (c .z_thresh )])
111
111
#table.append(['Smoothing Algorithm',c.smooth_type])
112
112
table .append (['fwhm' ,str (c .fwhm )])
113
- if c .task :
113
+ if c_qa .task :
114
114
table .append (['Highpass cutoff' ,str (c .hpcutoff )])
115
- if c .resting :
115
+ if c_qa .resting :
116
116
table .append (['highpass freq' ,str (c .highpass_freq )])
117
117
table .append (['lowpass freq' ,str (c .lowpass_freq )])
118
118
return table
@@ -371,8 +371,8 @@ def main(config_file):
371
371
if QA_config .test_mode :
372
372
a .write_graph ()
373
373
374
- a .inputs .inputspec .config_params = start_config_table (c )
375
- a .config = {'execution' : {'crashdump_dir' : QA_config .crash_dir }}
374
+ a .inputs .inputspec .config_params = start_config_table (c , QA_config )
375
+ a .config = {'execution' : {'crashdump_dir' : QA_config .crash_dir , 'job_finished_timeout' : 14 }}
376
376
377
377
if QA_config .use_advanced_options :
378
378
exec QA_config .advanced_script
0 commit comments