Skip to content

Commit f542a6e

Browse files
committed
Modified tpattern input to allow for strings (paths) and not just the 'alt-z' parameters
1 parent d83cfb9 commit f542a6e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,13 @@ class TShiftInputSpec(AFNICommandInputSpec):
111111
desc='different interpolation methods (see 3dTShift for details)' +
112112
' default = Fourier', argstr='-%s')
113113

114-
tpattern = traits.Enum(('alt+z', 'alt+z2', 'alt-z',
115-
'alt-z2', 'seq+z', 'seq-z'),
116-
desc='use specified slice time pattern rather than one in header',
117-
argstr='-tpattern %s')
114+
tpattern = traits.Str(desc='use specified slice time pattern rather than one in header',
115+
argstr='-tpattern %s')
116+
117+
# tpattern = traits.Enum(('alt+z', 'alt+z2', 'alt-z',
118+
# 'alt-z2', 'seq+z', 'seq-z'),
119+
# desc='use specified slice time pattern rather than one in header',
120+
# argstr='-tpattern %s')
118121

119122
rlt = traits.Bool(desc='Before shifting, remove the mean and linear trend',
120123
argstr="-rlt")

0 commit comments

Comments
 (0)