Skip to content

Commit bac6597

Browse files
committed
Merge pull request #750 from mluessi/fix_topup
FIX: topup out_base and params
2 parents 2ebe1dc + a3ac6c2 commit bac6597

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
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

nipype/interfaces/fsl/tests/test_auto_ApplyTOPUP.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def test_ApplyTOPUP_inputs():
1212
),
1313
args=dict(argstr='%s',
1414
),
15-
interp=dict(argstr='-n=%s',
15+
interp=dict(argstr='--interp=%s',
1616
),
1717
in_files=dict(mandatory=True,
1818
argstr='%s',
@@ -32,7 +32,7 @@ def test_ApplyTOPUP_inputs():
3232
out_base=dict(argstr='--out=%s',
3333
),
3434
output_type=dict(),
35-
method=dict(argstr='-m=%s',
35+
method=dict(argstr='--method=%s',
3636
),
3737
)
3838
inputs = ApplyTOPUP.input_spec()

0 commit comments

Comments
 (0)