Skip to content

Commit 0fa4234

Browse files
committed
fix: attribute names are lowercase camelcase
1 parent 7f25112 commit 0fa4234

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

nipype/utils/provenance.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ def add_results(self, results):
261261
nipype_ns["interface"]: classname,
262262
pm.PROV["label"]: classname,
263263
nipype_ns['duration']: safe_encode(runtime.duration),
264-
nipype_ns['working_directory']: safe_encode(runtime.cwd),
265-
nipype_ns['return_code']: safe_encode(runtime.returncode),
264+
nipype_ns['workingDirectory']: safe_encode(runtime.cwd),
265+
nipype_ns['returnCode']: safe_encode(runtime.returncode),
266266
nipype_ns['platform']: safe_encode(runtime.platform),
267267
nipype_ns['version']: safe_encode(runtime.version),
268268
}
@@ -274,7 +274,7 @@ def add_results(self, results):
274274

275275
try:
276276
a0_attrs.update({nipype_ns['command']: safe_encode(runtime.cmdline)})
277-
a0_attrs.update({nipype_ns['command_path']:
277+
a0_attrs.update({nipype_ns['commandPath']:
278278
safe_encode(runtime.command_path)})
279279
a0_attrs.update({nipype_ns['dependencies']:
280280
safe_encode(runtime.dependencies)})
@@ -299,7 +299,7 @@ def add_results(self, results):
299299
'MKL_NUM_THREADS', 'OMP_NUM_THREADS']:
300300
continue
301301
in_attr = {pm.PROV["label"]: key,
302-
nipype_ns["environment_variable"]: key,
302+
nipype_ns["environmentVariable"]: key,
303303
pm.PROV["value"]: safe_encode(val)}
304304
id = get_attr_id(in_attr)
305305
self.g.entity(id, in_attr)
@@ -316,7 +316,7 @@ def add_results(self, results):
316316
in_entity = prov_encode(self.g, val).get_identifier()
317317
self.g.hadMember(input_collection, in_entity)
318318
used_attr = {pm.PROV["label"]: key,
319-
nipype_ns["in_port"]: key}
319+
nipype_ns["inPort"]: key}
320320
self.g.used(activity=a0, entity=in_entity,
321321
other_attributes=used_attr)
322322
# write output entities
@@ -335,7 +335,7 @@ def add_results(self, results):
335335
out_entity = prov_encode(self.g, val).get_identifier()
336336
self.g.hadMember(output_collection, out_entity)
337337
gen_attr = {pm.PROV["label"]: key,
338-
nipype_ns["out_port"]: key}
338+
nipype_ns["outPort"]: key}
339339
self.g.generation(out_entity, activity=a0,
340340
other_attributes=gen_attr)
341341
# write runtime entities

0 commit comments

Comments
 (0)