File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ Next release
55
55
* FIX: SSHDataGrabber outputs now return full path to the grabbed/downloaded files. (https://github.com/nipy/nipype/pull/1086)
56
56
* FIX: Add QA output for TSNR to resting workflow (https://github.com/nipy/nipype/pull/1088)
57
57
* FIX: Change N4BiasFieldCorrection to use short tag for dimensionality (backward compatible) (https://github.com/nipy/nipype/pull/1096)
58
+ * ENH: Added -newgrid input to Warp in AFNI (3dWarp wrapper) (https://github.com/nipy/nipype/pull/1128)
58
59
59
60
Release 0.10.0 (October 10, 2014)
60
61
============
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