Skip to content

Commit c376a2d

Browse files
committed
fix: update location attribute
1 parent ef3f0bb commit c376a2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/utils/provenance.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,15 @@ def prov_encode(graph, value, create_container=True):
214214
encoded_literal = safe_encode(value)
215215
attr = {pm.PROV['value']: encoded_literal}
216216
if isinstance(value, basestring) and os.path.exists(value):
217-
attr.update({pm.PROV['Location']: encoded_literal})
217+
attr.update({pm.PROV['location']: encoded_literal})
218218
if not os.path.isdir(value):
219219
sha512 = hash_infile(value, crypto=hashlib.sha512)
220220
attr.update({crypto['sha512']: pm.Literal(sha512,
221221
pm.XSD['string'])})
222-
id = get_attr_id(attr, skip=[pm.PROV['Location'],
222+
id = get_attr_id(attr, skip=[pm.PROV['location'],
223223
pm.PROV['value']])
224224
else:
225-
id = get_attr_id(attr, skip=[pm.PROV['Location']])
225+
id = get_attr_id(attr, skip=[pm.PROV['location']])
226226
else:
227227
id = get_attr_id(attr)
228228
entity = graph.entity(id, attr)

0 commit comments

Comments
 (0)