File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -233,6 +233,9 @@ class WarpInputSpec(AFNICommandInputSpec):
233
233
argstr = "-gridset %s" ,
234
234
exists = True )
235
235
236
+ newgrid = traits .Float (desc = "specify grid of this size (mm)" ,
237
+ argstr = "-newgrid %f" )
238
+
236
239
zpad = traits .Int (desc = "pad input dataset with N planes" +
237
240
" of zero on all sides." ,
238
241
argstr = "-zpad %d" )
@@ -254,7 +257,13 @@ class Warp(AFNICommand):
254
257
>>> warp.inputs.out_file = "trans.nii.gz"
255
258
>>> warp.cmdline
256
259
'3dWarp -deoblique -prefix trans.nii.gz structural.nii'
257
- >>> res = warp.run() # doctest: +SKIP
260
+
261
+ >>> warp_2 = afni.Warp()
262
+ >>> warp_2.inputs.in_file = 'structural.nii'
263
+ >>> warp_2.inputs.newgrid = 1.0
264
+ >>> warp_2.inputs.out_file = "trans.nii.gz"
265
+ >>> warp_2.cmdline
266
+ '3dWarp -newgrid 1.000000 -prefix trans.nii.gz structural.nii'
258
267
259
268
"""
260
269
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ def test_Warp_inputs():
26
26
),
27
27
mni2tta = dict (argstr = '-mni2tta' ,
28
28
),
29
+ newgrid = dict (argstr = '-newgrid %f' ,
30
+ ),
29
31
out_file = dict (argstr = '-prefix %s' ,
30
32
name_source = 'in_file' ,
31
33
name_template = '%s_warp' ,
You can’t perform that action at this time.
0 commit comments