File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -356,9 +356,17 @@ class AllineateInputSpec(AFNICommandInputSpec):
356
356
weight_file = File (
357
357
argstr = '-weight %s' ,
358
358
exists = True ,
359
+ deprecated = '1.0.0' , new_name = 'weight' ,
359
360
desc = 'Set the weighting for each voxel in the base dataset; '
360
361
'larger weights mean that voxel count more in the cost function. '
361
362
'Must be defined on the same grid as the base dataset' )
363
+ weight = traits .Either (
364
+ File (exists = True ), traits .Float (),
365
+ argstr = '-weight %s' ,
366
+ desc = 'Set the weighting for each voxel in the base dataset; '
367
+ 'larger weights mean that voxel count more in the cost function. '
368
+ 'If an image file is given, the volume must be defined on the '
369
+ 'same grid as the base dataset' )
362
370
out_weight_file = traits .File (
363
371
argstr = '-wtprefix %s' ,
364
372
desc = 'Write the weight volume to disk as a dataset' ,
Original file line number Diff line number Diff line change @@ -117,7 +117,11 @@ def test_Allineate_inputs():
117
117
),
118
118
warpfreeze = dict (argstr = '-warpfreeze' ,
119
119
),
120
+ weight = dict (argstr = '-weight %s' ,
121
+ ),
120
122
weight_file = dict (argstr = '-weight %s' ,
123
+ deprecated = '1.0.0' ,
124
+ new_name = 'weight' ,
121
125
),
122
126
zclip = dict (argstr = '-zclip' ,
123
127
),
You can’t perform that action at this time.
0 commit comments