Skip to content

Commit 71a53ad

Browse files
committed
Minor edits in resampling interfaces
1 parent 394ac0d commit 71a53ad

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

nipype/interfaces/ants/resampling.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ class WarpImageMultiTransformInputSpec(ANTSCommandInputSpec):
115115
'coregistered functional)'), position=2)
116116
output_image = File(genfile=True, hash_files=False, argstr='%s',
117117
desc=('name of the output warped image'), position = 3, xor=['out_postfix'])
118-
out_postfix = File("_wimt", usedefault=True, hash_files=False,
118+
out_postfix = File("_wimt", #usedefault=True,
119+
hash_files=False,
119120
desc=('Postfix that is prepended to all output '
120121
'files (default = _wimt)'), xor=['output_image'])
121122
reference_image = File(argstr='-R %s', xor=['tightest_box'],
@@ -130,11 +131,11 @@ class WarpImageMultiTransformInputSpec(ANTSCommandInputSpec):
130131
'with additional transforms'))
131132
use_nearest = traits.Bool(argstr='--use-NN',
132133
desc='Use nearest neighbor interpolation')
133-
use_bspline = traits.Bool(argstr='--use-Bspline',
134+
use_bspline = traits.Bool(argstr='--use-BSpline',
134135
desc='Use 3rd order B-Spline interpolation')
135136
transformation_series = InputMultiPath(File(exists=True), argstr='%s',
136137
desc='transformation file(s) to be applied',
137-
mandatory=True)
138+
mandatory=True, position=-1)
138139
invert_affine = traits.List(traits.Int,
139140
desc=('List of Affine transformations to invert.'
140141
'E.g.: [1,4,5] inverts the 1st, 4th, and 5th Affines '
@@ -145,7 +146,7 @@ class WarpImageMultiTransformInputSpec(ANTSCommandInputSpec):
145146

146147

147148
class WarpImageMultiTransformOutputSpec(TraitedSpec):
148-
output_image = File(exists=True, desc='Warped image')
149+
output_image = File(desc='Warped image')
149150

150151

151152
class WarpImageMultiTransform(ANTSCommand):
@@ -255,7 +256,7 @@ class ApplyTransformsInputSpec(ANTSCommandInputSpec):
255256

256257

257258
class ApplyTransformsOutputSpec(TraitedSpec):
258-
output_image = File(exists=True, desc='Warped image')
259+
output_image = File(desc='Warped image')
259260

260261

261262
class ApplyTransforms(ANTSCommand):

0 commit comments

Comments
 (0)