@@ -273,7 +273,7 @@ def create_roi(subject_id, subjects_dir, fs_dir, parcellation_name, dilation):
273273
274274 iflogger .info ("[ DONE ]" )
275275 # dilate cortical regions
276- if ( dilation == True ) :
276+ if dilation is True :
277277 iflogger .info ("Dilating cortical regions..." )
278278 # loop throughout all the voxels belonging to the aseg GM volume
279279 for j in range (xx .size ):
@@ -463,7 +463,7 @@ def crop_and_move_datasets(subject_id, subjects_dir, fs_dir, parcellation_name,
463463
464464 ds .append ((op .abspath ('ROI_%s.nii.gz' % parcellation_name ),
465465 op .abspath ('ROI_HR_th.nii.gz' )))
466- if ( dilation == True ) :
466+ if dilation is True :
467467 ds .append ((op .abspath ('ROIv_%s.nii.gz' % parcellation_name ),
468468 op .abspath ('ROIv_HR_th.nii.gz' )))
469469 orig = op .join (fs_dir , 'mri' , 'orig' , '001.mgz' )
@@ -588,7 +588,7 @@ def _list_outputs(self):
588588 else :
589589 outputs ['roi_file' ] = op .abspath (
590590 self ._gen_outfilename ('nii.gz' , 'ROI' ))
591- if ( self .inputs .dilation == True ) :
591+ if self .inputs .dilation is True :
592592 outputs ['roiv_file' ] = op .abspath (self ._gen_outfilename (
593593 'nii.gz' , 'ROIv' ))
594594 outputs ['white_matter_mask_file' ] = op .abspath ('fsmask_1mm.nii.gz' )
@@ -597,7 +597,7 @@ def _list_outputs(self):
597597 outputs ['aseg_file' ] = op .abspath ('aseg.nii.gz' )
598598 outputs ['roi_file_in_structural_space' ] = op .abspath (
599599 'ROI_HR_th.nii.gz' )
600- if ( self .inputs .dilation == True ) :
600+ if self .inputs .dilation is True :
601601 outputs ['dilated_roi_file_in_structural_space' ] = op .abspath (
602602 'ROIv_HR_th.nii.gz' )
603603 return outputs
0 commit comments