File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 77import nipype .interfaces .utility as util
88from CPAC .pipeline import nipype_pipeline_engine as pe
99from nipype .interfaces import afni
10+ from nipype import logging
1011
1112from CPAC .nuisance .utils .compcor import calc_compcor_components
1213from CPAC .nuisance .utils .crc import encode as crc_encode
1314from CPAC .utils .interfaces .fsl import Merge as fslMerge
1415from CPAC .utils .interfaces .function import Function
1516from CPAC .registration .utils import check_transforms , generate_inverse_transform_flags
1617
18+ logger = logging .getLogger ('nipype.workflow' )
19+
1720
1821def find_offending_time_points (fd_j_file_path = None , fd_p_file_path = None , dvars_file_path = None ,
1922 fd_j_threshold = None , fd_p_threshold = None , dvars_threshold = None ,
@@ -403,6 +406,10 @@ def generate_summarize_tissue_mask_ventricles_masking(nuisance_wf,
403406 use_ants = True ,
404407 ventricle_mask_exist = True ):
405408
409+ if csf_mask_exist == False :
410+ logger .warning ('Segmentation is Off, - therefore will be using '
411+ 'lateral_ventricle_mask as CerebrospinalFluid_mask.' )
412+
406413 # Mask CSF with Ventricles
407414 if '{}_Unmasked' .format (mask_key ) not in pipeline_resource_pool :
408415
You can’t perform that action at this time.
0 commit comments