@@ -196,7 +196,7 @@ def _do_subject_slice_timing(subject_data, TR, TA=None, spm_dir=None,
196196 time_acquisition = TA , num_slices = nslices ,
197197 ref_slice = ref_slice + 1 ,
198198 slice_order = list (slice_order + 1 ), # SPM
199- ignore_exception = True
199+ ignore_exception = False
200200 )
201201 if stc_result .outputs is None :
202202 subject_data .failed = True
@@ -495,7 +495,7 @@ def _do_subject_coregister(subject_data, reslice=False, spm_dir=None,
495495 source = coreg_source ,
496496 apply_to_files = apply_to_files ,
497497 jobtype = jobtype ,
498- ignore_exception = True
498+ ignore_exception = False
499499 )
500500
501501 # failed node ?
@@ -633,7 +633,7 @@ def _do_subject_segment(subject_data, output_modulated_tpms=True, spm_dir=None,
633633 wm_output_type = gm_output_type ,
634634 csf_output_type = csf_output_type ,
635635 tissue_prob_maps = [GM_TEMPLATE , WM_TEMPLATE , CSF_TEMPLATE ],
636- ignore_exception = True
636+ ignore_exception = False
637637 )
638638
639639 # failed node
@@ -746,7 +746,7 @@ def _do_subject_normalize(subject_data, fwhm=0., anat_fwhm=0., caching=True,
746746 output_dir = subject_data .scratch )
747747 normalize_result = normalize (
748748 source = subject_data .anat , template = t1_template ,
749- write_preserve = False , ignore_exception = True )
749+ write_preserve = False , ignore_exception = False )
750750 parameter_file = normalize_result .outputs .normalization_parameters
751751 else :
752752 parameter_file = subject_data .nipype_results [
@@ -777,7 +777,7 @@ def _do_subject_normalize(subject_data, fwhm=0., anat_fwhm=0., caching=True,
777777 apply_to_files = apply_to_files ,
778778 write_voxel_sizes = list (write_voxel_sizes ),
779779 # write_bounding_box=[[-78, -112, -50], [78, 76, 85]],
780- write_interp = 1 , jobtype = 'write' , ignore_exception = True )
780+ write_interp = 1 , jobtype = 'write' , ignore_exception = False )
781781
782782 # failed node ?
783783 if normalize_result .outputs is None :
@@ -808,7 +808,7 @@ def _do_subject_normalize(subject_data, fwhm=0., anat_fwhm=0., caching=True,
808808 write_wrap = [0 , 0 , 0 ],
809809 write_interp = 1 ,
810810 jobtype = 'write' ,
811- ignore_exception = True
811+ ignore_exception = False
812812 )
813813
814814 # failed node
@@ -933,7 +933,7 @@ def _do_subject_smooth(subject_data, fwhm, anat_fwhm=None, spm_dir=None,
933933 in_files = [getattr (subject_data , x ) for x in anat_like ]
934934
935935 smooth_result = smooth (
936- in_files = in_files , fwhm = width , ignore_exception = True )
936+ in_files = in_files , fwhm = width , ignore_exception = False )
937937
938938 # failed node ?
939939 subject_data .nipype_results ['smooth' ][brain_name ] = smooth_result
@@ -1025,7 +1025,7 @@ def _do_subject_dartelnorm2mni(subject_data,
10251025 flowfield_files = subject_data .dartel_flow_fields ,
10261026 template_file = template_file ,
10271027 modulate = output_modulated_tpms , # don't modulate
1028- fwhm = anat_fwhm , ignore_exception = True , ** tricky_kwargs )
1028+ fwhm = anat_fwhm , ignore_exception = False , ** tricky_kwargs )
10291029 setattr (subject_data , "mw" + tissue ,
10301030 dartelnorm2mni_result .outputs .normalized_files )
10311031
@@ -1034,7 +1034,7 @@ def _do_subject_dartelnorm2mni(subject_data,
10341034 apply_to_files = subject_data .anat ,
10351035 flowfield_files = subject_data .dartel_flow_fields ,
10361036 template_file = template_file ,
1037- ignore_exception = True ,
1037+ ignore_exception = False ,
10381038 modulate = output_modulated_tpms ,
10391039 fwhm = anat_fwhm ,
10401040 ** tricky_kwargs
@@ -1049,7 +1049,7 @@ def _do_subject_dartelnorm2mni(subject_data,
10491049 createwarped_result = createwarped (
10501050 image_files = subject_data .func ,
10511051 flowfield_files = subject_data .dartel_flow_fields ,
1052- ignore_exception = True
1052+ ignore_exception = False
10531053 )
10541054 subject_data .func = createwarped_result .outputs .warped_files
10551055
@@ -1408,7 +1408,7 @@ def _do_subjects_newsegment(
14081408 newsegment_result = newsegment (
14091409 channel_files = [subject_data .anat for subject_data in subjects ],
14101410 tissues = TISSUES ,
1411- ignore_exception = True )
1411+ ignore_exception = False )
14121412 if newsegment_result .outputs is None :
14131413 return
14141414 else :
0 commit comments