Skip to content

Commit 0c1a4cd

Browse files
authored
Update reconst.py
Change max_sh to InputMultiObject, so that one can pass a list of lmax values when using a multishell model.
1 parent 01a2772 commit 0c1a4cd

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

nipype/interfaces/mrtrix3/reconst.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import os.path as op
88

9-
from ..base import traits, TraitedSpec, File, Undefined
9+
from ..base import traits, TraitedSpec, File, Undefined, InputMultiObject
1010
from .base import MRTrix3BaseInputSpec, MRTrix3Base
1111

1212

@@ -115,10 +115,14 @@ class EstimateFODInputSpec(MRTrix3BaseInputSpec):
115115
sep=',',
116116
argstr='-shell %s',
117117
desc='specify one or more dw gradient shells')
118-
max_sh = traits.Int(
119-
8, usedefault=True,
120-
argstr='-lmax %d',
121-
desc='maximum harmonic degree of response function')
118+
max_sh = InputMultiObject(
119+
traits.Int,
120+
value=[8],
121+
usedefault=True,
122+
argstr='-lmax %s',
123+
sep=',',
124+
desc=('maximum harmonic degree of response function - single value for '
125+
'single-shell response, list for multi-shell response'))
122126
in_dirs = File(
123127
exists=True,
124128
argstr='-directions %s',

0 commit comments

Comments
 (0)