@@ -169,7 +169,9 @@ def _parse_inputs( self, skip=None ):
169
169
skip = []
170
170
171
171
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 )
173
175
174
176
if isdefined ( self .inputs .encoding_file ):
175
177
skip .append ( 'encoding_direction' )
@@ -238,8 +240,8 @@ class ApplyTOPUPInputSpec( FSLCommandInputSpec ):
238
240
in_topup = File ( mandatory = True , desc = 'basename of field/movements (from topup)' , argstr = '--topup=%s' )
239
241
240
242
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' )
243
245
datatype = traits .Enum ( ('char' , 'short' , 'int' , 'float' , 'double' ), argstr = '-d=%s' , desc = 'force output data type' )
244
246
245
247
@@ -289,7 +291,9 @@ def _parse_inputs( self, skip=None ):
289
291
skip = []
290
292
291
293
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 )
293
297
return super (ApplyTOPUP , self )._parse_inputs (skip = skip )
294
298
295
299
0 commit comments