We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dac763b commit 92ce963Copy full SHA for 92ce963
nipype/interfaces/base.py
@@ -568,8 +568,9 @@ def get_hashval(self, hash_method=None):
568
569
dict_withhash = []
570
dict_nofilename = []
571
- for name, val in sorted(self.get_traitsfree().items()):
572
- if self.has_metadata(name, "nohash", True):
+ for name, val in sorted(self.get().items()):
+ if not isdefined(val) or self.has_metadata(name, "nohash", True):
573
+ # skip undefined traits and traits with nohash=True
574
continue
575
576
hash_files = (not self.has_metadata(name, "hash_files", False) and not
0 commit comments