Skip to content

Commit bb125ab

Browse files
authored
Merge pull request #3377 from nipy/oesteban-patch-1
ENH: ``verbose`` input should not be hashed in ``ants.Registration``
2 parents 7080ef9 + f69b3fb commit bb125ab

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

nipype/interfaces/ants/registration.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,9 @@ class RegistrationInputSpec(ANTSCommandInputSpec):
584584
desc="The Lower quantile to clip image ranges",
585585
)
586586

587-
verbose = traits.Bool(argstr="-v", default_value=False, usedefault=True)
587+
verbose = traits.Bool(
588+
argstr="-v", default_value=False, usedefault=True, nohash=True
589+
)
588590

589591

590592
class RegistrationOutputSpec(TraitedSpec):

nipype/interfaces/ants/tests/test_auto_Registration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def test_Registration_inputs():
154154
),
155155
verbose=dict(
156156
argstr="-v",
157+
nohash=True,
157158
usedefault=True,
158159
),
159160
winsorize_lower_quantile=dict(

nipype/interfaces/base/tests/test_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def __init__(self, **inputs):
157157
assert {} == check_dict(data_dict, tsthash2.inputs.get_traitsfree())
158158

159159
_, hashvalue = tsthash.inputs.get_hashval(hash_method="timestamp")
160-
assert "8562a5623562a871115eb14822ee8d02" == hashvalue
160+
assert hashvalue == "e35bf07fea8049cc02de9235f85e8903"
161161

162162

163163
class MinVerInputSpec(nib.TraitedSpec):

0 commit comments

Comments
 (0)