Skip to content

Commit ec67a85

Browse files
authored
Merge pull request #2125 from djarecka/fnirt_indensity
fix to #2124
2 parents 72e0a43 + 0388485 commit ec67a85

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

nipype/interfaces/fsl/preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ class FNIRTInputSpec(FSLCommandInputSpec):
877877
desc=('If true, ref image is used to calculate derivatives. '
878878
'Default false'))
879879
intensity_mapping_model = traits.Enum(
880-
'none', 'global_linear', 'global_non_linear'
880+
'none', 'global_linear', 'global_non_linear',
881881
'local_linear', 'global_non_linear_with_bias',
882882
'local_non_linear', argstr='--intmod=%s',
883883
desc='Model for intensity-mapping')

nipype/interfaces/fsl/tests/test_preprocess.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@ def test_fnirt(setup_flirt):
393393
('in_fwhm', '--infwhm', [4, 2, 2, 0], '4,2,2,0'),
394394
('apply_refmask', '--applyrefmask', [0, 0, 1, 1], '0,0,1,1'),
395395
('apply_inmask', '--applyinmask', [0, 0, 0, 1], '0,0,0,1'),
396-
('regularization_lambda', '--lambda', [0.5, 0.75], '0.5,0.75')]
396+
('regularization_lambda', '--lambda', [0.5, 0.75], '0.5,0.75'),
397+
('intensity_mapping_model', '--intmod', 'global_non_linear', 'global_non_linear')]
397398
for item, flag, val, strval in params:
398399
fnirt = fsl.FNIRT(in_file=infile,
399400
ref_file=reffile,
@@ -406,7 +407,7 @@ def test_fnirt(setup_flirt):
406407
' %s=%s --ref=%s'\
407408
' --iout=%s' % (infile, log,
408409
flag, strval, reffile, iout)
409-
elif item in ('in_fwhm'):
410+
elif item in ('in_fwhm', 'intensity_mapping_model'):
410411
cmd = 'fnirt --in=%s %s=%s --logout=%s '\
411412
'--ref=%s --iout=%s' % (infile, flag,
412413
strval, log, reffile, iout)

0 commit comments

Comments
 (0)