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):
1573
1573
method = 'none'
1574
1574
if isdefined (self .inputs .method ) and self .inputs .method != 'none' :
1575
1575
method = 'fast'
1576
+ if self .inputs .list_of_specific_structures and \
1577
+ self .inputs .method == 'auto' :
1578
+ method = 'none'
1576
1579
1577
1580
if isdefined (self .inputs .method_as_numerical_threshold ):
1578
1581
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():
579
579
value = first ._gen_fname (name = 'original_segmentations' )
580
580
expected_value = os .path .abspath ('segment_all_none_origsegs.nii.gz' )
581
581
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