Skip to content

Commit d4a989e

Browse files
committed
added metadata to input trait in N4BiasFieldCorrection
Both comments satisfied (#911 (comment))
1 parent a29275a commit d4a989e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

nipype/interfaces/ants/segmentation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ class N4BiasFieldCorrectionInputSpec(ANTSCommandInputSpec):
243243
save_bias = traits.Bool(False, mandatory=True, usedefault=True,
244244
desc=('True if the estimated bias should be saved'
245245
' to file.'), xor=['bias_image'])
246-
bias_image = File(desc=('Filename for the estimated bias.'))
246+
bias_image = File(desc=('Filename for the estimated bias.'),
247+
hash_files=False)
247248

248249

249250
class N4BiasFieldCorrectionOutputSpec(TraitedSpec):

nipype/interfaces/ants/tests/test_auto_N4BiasFieldCorrection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
def test_N4BiasFieldCorrection_inputs():
66
input_map = dict(args=dict(argstr='%s',
77
),
8-
bias_image=dict(),
8+
bias_image=dict(hash_files=False,
9+
),
910
bspline_fitting_distance=dict(argstr='--bsline-fitting [%g]',
1011
),
1112
convergence_threshold=dict(argstr=',%g]',

0 commit comments

Comments
 (0)