Skip to content

[FIX] Fixed a small bug in freesurfer label2annot fill_thresh specs #2377

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 11 commits into from
Feb 24, 2018
Merged
4 changes: 2 additions & 2 deletions nipype/interfaces/freesurfer/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ class Label2VolInputSpec(FSTraitedSpec):
invert_mtx = traits.Bool(
argstr='--invertmtx', desc='Invert the registration matrix')
fill_thresh = traits.Range(
0., 1., argstr='--fillthresh %.f', desc='thresh : between 0 and 1')
0., 1., argstr='--fillthresh %g', desc='thresh : between 0 and 1')
label_voxel_volume = traits.Float(
argstr='--labvoxvol %f', desc='volume of each label point (def 1mm3)')
proj = traits.Tuple(
Expand Down Expand Up @@ -1183,7 +1183,7 @@ class Label2Vol(FSCommand):

>>> binvol = Label2Vol(label_file='cortex.label', template_file='structural.nii', reg_file='register.dat', fill_thresh=0.5, vol_label_file='foo_out.nii')
>>> binvol.cmdline
'mri_label2vol --fillthresh 0 --label cortex.label --reg register.dat --temp structural.nii --o foo_out.nii'
'mri_label2vol --fillthresh 0.5 --label cortex.label --reg register.dat --temp structural.nii --o foo_out.nii'

"""

Expand Down
2 changes: 1 addition & 1 deletion nipype/interfaces/freesurfer/tests/test_auto_Label2Vol.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_Label2Vol_inputs():
nohash=True,
usedefault=True,
),
fill_thresh=dict(argstr='--fillthresh %.f', ),
fill_thresh=dict(argstr='--fillthresh %g', ),
hemi=dict(argstr='--hemi %s', ),
identity=dict(
argstr='--identity',
Expand Down