Skip to content

Commit 1468583

Browse files
committed
Fix interp enum value for RegResample and RegTools
According to NiftyReg source code: https://cmiclab.cs.ucl.ac.uk/mmodat/niftyreg/blob/master/reg-apps/reg_resample.cpp#L65
1 parent d55716a commit 1468583

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/niftyreg/regutils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class RegResample(NiftyRegCommand):
122122
# Need this overload to properly constraint the interpolation type input
123123
def _format_arg(self, name, spec, value):
124124
if name == 'inter_val':
125-
inter_val = {'NN': 0, 'LIN': 1, 'CUB': 3, 'SINC': 5}
125+
inter_val = {'NN': 0, 'LIN': 1, 'CUB': 3, 'SINC': 4}
126126
return spec.argstr % inter_val[value]
127127
else:
128128
return super(RegResample, self)._format_arg(name, spec, value)
@@ -338,7 +338,7 @@ class RegTools(NiftyRegCommand):
338338
# Need this overload to properly constraint the interpolation type input
339339
def _format_arg(self, name, spec, value):
340340
if name == 'inter_val':
341-
inter_val = {'NN': 0, 'LIN': 1, 'CUB': 3, 'SINC': 5}
341+
inter_val = {'NN': 0, 'LIN': 1, 'CUB': 3, 'SINC': 4}
342342
return spec.argstr % inter_val[value]
343343
else:
344344
return super(RegTools, self)._format_arg(name, spec, value)

0 commit comments

Comments
 (0)