@@ -273,7 +273,7 @@ def create_roi(subject_id, subjects_dir, fs_dir, parcellation_name, dilation):
273
273
274
274
iflogger .info ("[ DONE ]" )
275
275
# dilate cortical regions
276
- if ( dilation == True ) :
276
+ if dilation is True :
277
277
iflogger .info ("Dilating cortical regions..." )
278
278
# loop throughout all the voxels belonging to the aseg GM volume
279
279
for j in range (xx .size ):
@@ -463,7 +463,7 @@ def crop_and_move_datasets(subject_id, subjects_dir, fs_dir, parcellation_name,
463
463
464
464
ds .append ((op .abspath ('ROI_%s.nii.gz' % parcellation_name ),
465
465
op .abspath ('ROI_HR_th.nii.gz' )))
466
- if ( dilation == True ) :
466
+ if dilation is True :
467
467
ds .append ((op .abspath ('ROIv_%s.nii.gz' % parcellation_name ),
468
468
op .abspath ('ROIv_HR_th.nii.gz' )))
469
469
orig = op .join (fs_dir , 'mri' , 'orig' , '001.mgz' )
@@ -588,7 +588,7 @@ def _list_outputs(self):
588
588
else :
589
589
outputs ['roi_file' ] = op .abspath (
590
590
self ._gen_outfilename ('nii.gz' , 'ROI' ))
591
- if ( self .inputs .dilation == True ) :
591
+ if self .inputs .dilation is True :
592
592
outputs ['roiv_file' ] = op .abspath (self ._gen_outfilename (
593
593
'nii.gz' , 'ROIv' ))
594
594
outputs ['white_matter_mask_file' ] = op .abspath ('fsmask_1mm.nii.gz' )
@@ -597,7 +597,7 @@ def _list_outputs(self):
597
597
outputs ['aseg_file' ] = op .abspath ('aseg.nii.gz' )
598
598
outputs ['roi_file_in_structural_space' ] = op .abspath (
599
599
'ROI_HR_th.nii.gz' )
600
- if ( self .inputs .dilation == True ) :
600
+ if self .inputs .dilation is True :
601
601
outputs ['dilated_roi_file_in_structural_space' ] = op .abspath (
602
602
'ROIv_HR_th.nii.gz' )
603
603
return outputs
0 commit comments