Skip to content

Commit 16f110d

Browse files
authored
Merge pull request #264 from clamsproject/claude/issue-251-01Wn67df4YEY6KQfeTXckc9b
Address issue #251
2 parents 69bdca9 + cea64b2 commit 16f110d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

clams/app/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,13 @@ def annotate(self, mmif: Union[str, dict, Mmif], **runtime_params: List[str]) ->
181181
runtime_recs['cuda'].append(self._cuda_device_name_concat(name, mem))
182182
for annotated_view in annotated.views:
183183
if annotated_view.metadata.app == self.metadata.identifier:
184+
profiling_data = {}
184185
if runningTime:
185-
annotated_view.metadata.set_additional_property('appRunningTime', str(td))
186+
profiling_data['runningTime'] = str(td)
186187
if len(runtime_recs) > 0:
187-
annotated_view.metadata.set_additional_property('appRunningHardware', runtime_recs)
188+
profiling_data['hardware'] = runtime_recs
189+
if profiling_data:
190+
annotated_view.metadata.set_additional_property('appProfiling', profiling_data)
188191

189192
return annotated.serialize(pretty=pretty, sanitize=True)
190193

0 commit comments

Comments
 (0)