Skip to content

fix: more fast fixes #1525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions nipype/interfaces/fsl/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -1573,6 +1573,9 @@ def _gen_fname(self, name):
method = 'none'
if isdefined(self.inputs.method) and self.inputs.method != 'none':
method = 'fast'
if self.inputs.list_of_specific_structures and \
self.inputs.method == 'auto':
method = 'none'

if isdefined(self.inputs.method_as_numerical_threshold):
thres = '%.4f' % self.inputs.method_as_numerical_threshold
Expand Down
5 changes: 5 additions & 0 deletions nipype/interfaces/fsl/tests/test_preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,3 +579,8 @@ def test_first_genfname():
value = first._gen_fname(name='original_segmentations')
expected_value = os.path.abspath('segment_all_none_origsegs.nii.gz')
yield assert_equal, value, expected_value
first.inputs.method = 'auto'
first.inputs.list_of_specific_structures = ['L_Hipp', 'R_Hipp']
value = first._gen_fname(name='original_segmentations')
expected_value = os.path.abspath('segment_all_none_origsegs.nii.gz')
yield assert_equal, value, expected_value