File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1573,6 +1573,9 @@ def _gen_fname(self, name):
15731573 method = 'none'
15741574 if isdefined (self .inputs .method ) and self .inputs .method != 'none' :
15751575 method = 'fast'
1576+ if self .inputs .list_of_specific_structures and \
1577+ self .inputs .method == 'auto' :
1578+ method = 'none'
15761579
15771580 if isdefined (self .inputs .method_as_numerical_threshold ):
15781581 thres = '%.4f' % self .inputs .method_as_numerical_threshold
Original file line number Diff line number Diff line change @@ -579,3 +579,8 @@ def test_first_genfname():
579579 value = first ._gen_fname (name = 'original_segmentations' )
580580 expected_value = os .path .abspath ('segment_all_none_origsegs.nii.gz' )
581581 yield assert_equal , value , expected_value
582+ first .inputs .method = 'auto'
583+ first .inputs .list_of_specific_structures = ['L_Hipp' , 'R_Hipp' ]
584+ value = first ._gen_fname (name = 'original_segmentations' )
585+ expected_value = os .path .abspath ('segment_all_none_origsegs.nii.gz' )
586+ yield assert_equal , value , expected_value
You can’t perform that action at this time.
0 commit comments