File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -353,12 +353,13 @@ class AllineateInputSpec(AFNICommandInputSpec):
353
353
argstr = '-nomask' ,
354
354
desc = 'Don\' t compute the autoweight/mask; if -weight is not '
355
355
'also used, then every voxel will be counted equally.' )
356
- weight_file = File (
356
+ weight = traits .Either (
357
+ File (exists = True ), traits .Float (),
357
358
argstr = '-weight %s' ,
358
- exists = True ,
359
359
desc = 'Set the weighting for each voxel in the base dataset; '
360
360
'larger weights mean that voxel count more in the cost function. '
361
- 'Must be defined on the same grid as the base dataset' )
361
+ 'If an image file is given, the volume must be defined on the '
362
+ 'same grid as the base dataset' )
362
363
out_weight_file = traits .File (
363
364
argstr = '-wtprefix %s' ,
364
365
desc = 'Write the weight volume to disk as a dataset' ,
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ def test_Allineate_inputs():
117
117
),
118
118
warpfreeze = dict (argstr = '-warpfreeze' ,
119
119
),
120
- weight_file = dict (argstr = '-weight %s' ,
120
+ weight = dict (argstr = '-weight %s' ,
121
121
),
122
122
zclip = dict (argstr = '-zclip' ,
123
123
),
You can’t perform that action at this time.
0 commit comments