Skip to content

Commit 92ce963

Browse files
committed
roll back to get() in get_hashval
1 parent dac763b commit 92ce963

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nipype/interfaces/base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,9 @@ def get_hashval(self, hash_method=None):
568568

569569
dict_withhash = []
570570
dict_nofilename = []
571-
for name, val in sorted(self.get_traitsfree().items()):
572-
if self.has_metadata(name, "nohash", True):
571+
for name, val in sorted(self.get().items()):
572+
if not isdefined(val) or self.has_metadata(name, "nohash", True):
573+
# skip undefined traits and traits with nohash=True
573574
continue
574575

575576
hash_files = (not self.has_metadata(name, "hash_files", False) and not

0 commit comments

Comments
 (0)