Skip to content

Commit d74069e

Browse files
committed
constrain write_which to length 2
1 parent 1589ff2 commit d74069e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nipype/interfaces/spm/preprocess.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ class RealignInputSpec(SPMCommandInputSpec):
130130
field='eoptions.wrap',
131131
desc='Check if interpolation should wrap in [x,y,z]')
132132
write_which = traits.List(traits.Int, traits.Int, field='roptions.which',
133+
minlen=2, maxlen=2,
133134
desc='determines which images to reslice')
134135
write_interp = traits.Range(low=0, high=7, field='roptions.interp',
135136
desc='degree of b-spline used for interpolation')

0 commit comments

Comments
 (0)