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.
1 parent c2e9295 commit d55716aCopy full SHA for d55716a
nipype/interfaces/niftyreg/regutils.py
@@ -335,6 +335,14 @@ class RegTools(NiftyRegCommand):
335
output_spec = RegToolsOutputSpec
336
_suffix = '_tools'
337
338
+ # Need this overload to properly constraint the interpolation type input
339
+ def _format_arg(self, name, spec, value):
340
+ if name == 'inter_val':
341
+ inter_val = {'NN': 0, 'LIN': 1, 'CUB': 3, 'SINC': 5}
342
+ return spec.argstr % inter_val[value]
343
+ else:
344
+ return super(RegTools, self)._format_arg(name, spec, value)
345
+
346
347
class RegAverageInputSpec(NiftyRegCommandInputSpec):
348
""" Input Spec for RegAverage. """
0 commit comments