Skip to content

Commit 40b66be

Browse files
committed
use deprecated for weight_file
1 parent d181f4c commit 40b66be

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,13 @@ class AllineateInputSpec(AFNICommandInputSpec):
353353
argstr='-nomask',
354354
desc='Don\'t compute the autoweight/mask; if -weight is not '
355355
'also used, then every voxel will be counted equally.')
356+
weight_file = File(
357+
argstr='-weight %s',
358+
exists=True,
359+
deprecated='1.0.0', new_name='weight',
360+
desc='Set the weighting for each voxel in the base dataset; '
361+
'larger weights mean that voxel count more in the cost function. '
362+
'Must be defined on the same grid as the base dataset')
356363
weight = traits.Either(
357364
File(exists=True), traits.Float(),
358365
argstr='-weight %s',

nipype/interfaces/afni/tests/test_auto_Allineate.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ def test_Allineate_inputs():
119119
),
120120
weight=dict(argstr='-weight %s',
121121
),
122+
weight_file=dict(argstr='-weight %s',
123+
deprecated='1.0.0',
124+
new_name='weight',
125+
),
122126
zclip=dict(argstr='-zclip',
123127
),
124128
)

0 commit comments

Comments
 (0)