Skip to content

Commit 7230ef0

Browse files
author
Martin Luessi
committed
FIX: topup out file and params
1 parent 0d3129b commit 7230ef0

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

nipype/interfaces/fsl/epi.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ def _parse_inputs( self, skip=None ):
169169
skip = []
170170

171171
if not isdefined(self.inputs.out_base ):
172-
self.inputs.out_base = os.path.abspath( './nipypetu' )
172+
self.inputs.out_base = './nipypetu'
173+
174+
self.inputs.out_base = os.path.abspath(self.inputs.out_base)
173175

174176
if isdefined( self.inputs.encoding_file ):
175177
skip.append( 'encoding_direction' )
@@ -238,8 +240,8 @@ class ApplyTOPUPInputSpec( FSLCommandInputSpec ):
238240
in_topup = File( mandatory=True, desc='basename of field/movements (from topup)', argstr='--topup=%s' )
239241

240242
out_base = File( desc='basename for output (warped) image', argstr='--out=%s' )
241-
method = traits.Enum( ('jac','lsr'), argstr='-m=%s', desc='use jacobian modulation (jac) or least-squares resampling (lsr)' )
242-
interp = traits.Enum( ('trilinear','spline'), argstr='-n=%s', desc='interpolation method' )
243+
method = traits.Enum( ('jac','lsr'), argstr='--method=%s', desc='use jacobian modulation (jac) or least-squares resampling (lsr)' )
244+
interp = traits.Enum( ('trilinear','spline'), argstr='--interp=%s', desc='interpolation method' )
243245
datatype = traits.Enum( ('char', 'short', 'int', 'float', 'double' ), argstr='-d=%s', desc='force output data type' )
244246

245247

@@ -289,7 +291,9 @@ def _parse_inputs( self, skip=None ):
289291
skip = []
290292

291293
if not isdefined(self.inputs.out_base ):
292-
self.inputs.out_base = os.path.abspath( './nipypeatu' )
294+
self.inputs.out_base = './nipypeatu'
295+
296+
self.inputs.out_base = os.path.abspath(self.inputs.out_base)
293297
return super(ApplyTOPUP, self)._parse_inputs(skip=skip)
294298

295299

0 commit comments

Comments
 (0)