Skip to content

Commit 4deed83

Browse files
committed
fix: set resampling default to grid-constant
1 parent 1cae2bd commit 4deed83

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

nibabies/interfaces/resampling.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,15 @@ class ResampleSeriesInputSpec(TraitedSpec):
6262
num_threads = traits.Int(1, usedefault=True, desc='Number of threads to use for resampling')
6363
output_data_type = traits.Str('float32', usedefault=True, desc='Data type of output image')
6464
order = traits.Int(3, usedefault=True, desc='Order of interpolation (0=nearest, 3=cubic)')
65-
mode = traits.Str(
65+
mode = traits.Enum(
66+
'grid-constant',
67+
'nearest',
6668
'constant',
69+
'mirror',
70+
'reflect',
71+
'wrap',
72+
'grid-mirror',
73+
'grid-wrap',
6774
usedefault=True,
6875
desc='How data is extended beyond its boundaries. '
6976
'See scipy.ndimage.map_coordinates for more details.',

0 commit comments

Comments
 (0)