We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 72e0a43 + 0388485 commit ec67a85Copy full SHA for ec67a85
nipype/interfaces/fsl/preprocess.py
@@ -877,7 +877,7 @@ class FNIRTInputSpec(FSLCommandInputSpec):
877
desc=('If true, ref image is used to calculate derivatives. '
878
'Default false'))
879
intensity_mapping_model = traits.Enum(
880
- 'none', 'global_linear', 'global_non_linear'
+ 'none', 'global_linear', 'global_non_linear',
881
'local_linear', 'global_non_linear_with_bias',
882
'local_non_linear', argstr='--intmod=%s',
883
desc='Model for intensity-mapping')
nipype/interfaces/fsl/tests/test_preprocess.py
@@ -393,7 +393,8 @@ def test_fnirt(setup_flirt):
393
('in_fwhm', '--infwhm', [4, 2, 2, 0], '4,2,2,0'),
394
('apply_refmask', '--applyrefmask', [0, 0, 1, 1], '0,0,1,1'),
395
('apply_inmask', '--applyinmask', [0, 0, 0, 1], '0,0,0,1'),
396
- ('regularization_lambda', '--lambda', [0.5, 0.75], '0.5,0.75')]
+ ('regularization_lambda', '--lambda', [0.5, 0.75], '0.5,0.75'),
397
+ ('intensity_mapping_model', '--intmod', 'global_non_linear', 'global_non_linear')]
398
for item, flag, val, strval in params:
399
fnirt = fsl.FNIRT(in_file=infile,
400
ref_file=reffile,
@@ -406,7 +407,7 @@ def test_fnirt(setup_flirt):
406
407
' %s=%s --ref=%s'\
408
' --iout=%s' % (infile, log,
409
flag, strval, reffile, iout)
- elif item in ('in_fwhm'):
410
+ elif item in ('in_fwhm', 'intensity_mapping_model'):
411
cmd = 'fnirt --in=%s %s=%s --logout=%s '\
412
'--ref=%s --iout=%s' % (infile, flag,
413
strval, log, reffile, iout)
0 commit comments