Skip to content

Commit 8ab8f3f

Browse files
authored
Merge pull request #1525 from satra/fix/fast
fix: more fast fixes
2 parents 337d126 + b726bfb commit 8ab8f3f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

nipype/interfaces/fsl/preprocess.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

nipype/interfaces/fsl/tests/test_preprocess.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)