Skip to content

Commit 234cd68

Browse files
authored
fix: Default to grid-constant interpolation mode (#3516)
This is a potential fix to #3475 and #3508. To test: ``` git clone https://github.com/nipreps/fmriprep.git fmriprep-3516 git -C fmriprep-3516 fetch origin refs/pull/3516/head git -C fmriprep-3516 checkout FETCH_HEAD fmriprep-docker [NORMAL ARGS] --patch fmriprep=$PWD/fmriprep-3516/fmriprep ``` @claraElk @HippocampusGirl Could you verify that this does not re-introduce the problems we were trying to fix in #3453?
2 parents 7ad7b62 + bc5c33f commit 234cd68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fmriprep/interfaces/resampling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ class ResampleSeriesInputSpec(TraitedSpec):
5454
output_data_type = traits.Str('float32', usedefault=True, desc='Data type of output image')
5555
order = traits.Int(3, usedefault=True, desc='Order of interpolation (0=nearest, 3=cubic)')
5656
mode = traits.Enum(
57+
'grid-constant',
5758
'nearest',
5859
'constant',
5960
'mirror',
6061
'reflect',
6162
'wrap',
62-
'grid-constant',
6363
'grid-mirror',
6464
'grid-wrap',
6565
usedefault=True,

0 commit comments

Comments
 (0)