Skip to content

Commit 03756c3

Browse files
committed
fix for Label2Annot example command line & change %.f to %g in fillthresh parameter
1 parent a6205c5 commit 03756c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/freesurfer/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ class Label2VolInputSpec(FSTraitedSpec):
11441144
invert_mtx = traits.Bool(
11451145
argstr='--invertmtx', desc='Invert the registration matrix')
11461146
fill_thresh = traits.Range(
1147-
0., 1., argstr='--fillthresh %f', desc='thresh : between 0 and 1')
1147+
0., 1., argstr='--fillthresh %g', desc='thresh : between 0 and 1')
11481148
label_voxel_volume = traits.Float(
11491149
argstr='--labvoxvol %f', desc='volume of each label point (def 1mm3)')
11501150
proj = traits.Tuple(
@@ -1182,7 +1182,7 @@ class Label2Vol(FSCommand):
11821182
11831183
>>> binvol = Label2Vol(label_file='cortex.label', template_file='structural.nii', reg_file='register.dat', fill_thresh=0.5, vol_label_file='foo_out.nii')
11841184
>>> binvol.cmdline
1185-
'mri_label2vol --fillthresh 0 --label cortex.label --reg register.dat --temp structural.nii --o foo_out.nii'
1185+
'mri_label2vol --fillthresh 0.5 --label cortex.label --reg register.dat --temp structural.nii --o foo_out.nii'
11861186
11871187
"""
11881188

0 commit comments

Comments
 (0)