Skip to content

Commit 601b8a3

Browse files
committed
fix: changing extra_attributes call
1 parent 48b7b6b commit 601b8a3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

nipype/pipeline/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ def write_workflow_prov(graph, filename=None, format='all'):
11721172
ps.g = merge_bundles(ps.g, sub_bundle)
11731173
ps.g.wasGeneratedBy(sub_bundle, process)
11741174
else:
1175-
process.add_extra_attributes({pm.PROV["type"]: nipype_ns["Node"]})
1175+
process.add_attributes({pm.PROV["type"]: nipype_ns["Node"]})
11761176
result_bundle = ProvStore().add_results(result)
11771177
ps.g = merge_bundles(ps.g, result_bundle)
11781178
ps.g.wasGeneratedBy(result_bundle, process)

nipype/utils/provenance.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ def get_hashval(inputdict, skip=None):
8282
val = val.value
8383
dict_nofilename[outname] = _get_sorteddict(val)
8484
dict_withhash[outname] = _get_sorteddict(val, True)
85-
return (dict_withhash, md5(dict_nofilename.encode()).hexdigest())
85+
sorted_dict = str(sorted(dict_nofilename.items()))
86+
return (dict_withhash, md5(str(dict_nofilename).encode()).hexdigest())
8687

8788

8889
def _get_sorteddict(object, dictwithhash=False):

0 commit comments

Comments
 (0)