Skip to content

Commit 29153f1

Browse files
committed
[FIX #1579] FSL Cluster ignores use_mm input
1 parent 437c23a commit 29153f1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

nipype/interfaces/fsl/model.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,7 +1607,8 @@ class ClusterInputSpec(FSLCommandInputSpec):
16071607
desc='interprets the threshold as a fraction of the robust range')
16081608
connectivity = traits.Int(argstr='--connectivity=%d',
16091609
desc='the connectivity of voxels (default 26)')
1610-
use_mm = traits.Bool('--mm', desc='use mm, not voxel, coordinates')
1610+
use_mm = traits.Bool(False, usedefault=True, argstr='--mm',
1611+
desc='use mm, not voxel, coordinates')
16111612
find_min = traits.Bool('--min', desc='find minima instead of maxima')
16121613
no_table = traits.Bool(
16131614
'--no_table', desc='suppresses printing of the table info')
@@ -1644,8 +1645,9 @@ class Cluster(FSLCommand):
16441645
>>> cl.inputs.threshold = 2.3
16451646
>>> cl.inputs.in_file = 'zstat1.nii.gz'
16461647
>>> cl.inputs.out_localmax_txt_file = 'stats.txt'
1648+
>>> cl.inputs.use_mm = True
16471649
>>> cl.cmdline
1648-
'cluster --in=zstat1.nii.gz --olmax=stats.txt --thresh=2.3000000000'
1650+
'cluster --in=zstat1.nii.gz --olmax=stats.txt --thresh=2.3000000000 --mm'
16491651
16501652
"""
16511653
input_spec = ClusterInputSpec

0 commit comments

Comments
 (0)