Skip to content

Change max_sh variable in reconst.py to accept a list; keep %d option #2997

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

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
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
11 changes: 7 additions & 4 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,13 @@ class EstimateFODInputSpec(MRTrix3BaseInputSpec):
sep=',',
argstr='-shell %s',
desc='specify one or more dw gradient shells')
max_sh = traits.Int(
8, usedefault=True,
max_sh = InputMultiObject(
traits.Int,
value=[8],
usedefault=True,
argstr='-lmax %d',
desc='maximum harmonic degree of response function')
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