Skip to content
Merged
Changes from 1 commit
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
Next Next commit
Update reconst.py
Change max_sh  to InputMultiObject, so that one can pass a list of lmax values when using a multishell model.
  • Loading branch information
lucindasisk authored Aug 6, 2019
commit 0c1a4cdcf2867523c6dac84ab2ca0745ca5f0d08
14 changes: 9 additions & 5 deletions nipype/interfaces/mrtrix3/reconst.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import os.path as op

from ..base import traits, TraitedSpec, File, Undefined
from ..base import traits, TraitedSpec, File, Undefined, InputMultiObject
from .base import MRTrix3BaseInputSpec, MRTrix3Base


Expand Down Expand Up @@ -115,10 +115,14 @@ class EstimateFODInputSpec(MRTrix3BaseInputSpec):
sep=',',
argstr='-shell %s',
desc='specify one or more dw gradient shells')
max_sh = traits.Int(
8, usedefault=True,
argstr='-lmax %d',
desc='maximum harmonic degree of response function')
max_sh = InputMultiObject(
traits.Int,
value=[8],
usedefault=True,
argstr='-lmax %s',
sep=',',
desc=('maximum harmonic degree of response function - single value for '
'single-shell response, list for multi-shell response'))
in_dirs = File(
exists=True,
argstr='-directions %s',
Expand Down