Skip to content

Commit 7fbc7cb

Browse files
authored
Merge pull request #2940 from garikoitz/patch-1
FIX: Allow ``max_sh``not to be set (auto mode)
2 parents 460c1bb + 68952d4 commit 7fbc7cb

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

nipype/interfaces/mrtrix3/preprocess.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,6 @@ class ResponseSDInputSpec(MRTrix3BaseInputSpec):
276276
exists=True, argstr='-mask %s', desc='provide initial mask image')
277277
max_sh = InputMultiObject(
278278
traits.Int,
279-
value=[8],
280-
usedefault=True,
281279
argstr='-lmax %s',
282280
sep=',',
283281
desc=('maximum harmonic degree of response function - single value for '
@@ -303,7 +301,7 @@ class ResponseSD(MRTrix3Base):
303301
>>> resp.inputs.algorithm = 'tournier'
304302
>>> resp.inputs.grad_fsl = ('bvecs', 'bvals')
305303
>>> resp.cmdline # doctest: +ELLIPSIS
306-
'dwi2response tournier -fslgrad bvecs bvals -lmax 8 dwi.mif wm.txt'
304+
'dwi2response tournier -fslgrad bvecs bvals dwi.mif wm.txt'
307305
>>> resp.run() # doctest: +SKIP
308306
309307
# We can also pass in multiple harmonic degrees in the case of multi-shell

nipype/interfaces/mrtrix3/tests/test_auto_ResponseSD.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def test_ResponseSD_inputs():
3737
max_sh=dict(
3838
argstr='-lmax %s',
3939
sep=',',
40-
usedefault=True,
4140
),
4241
mtt_file=dict(
4342
argstr='%s',

0 commit comments

Comments
 (0)