未验证 提交 4049f980 编写于 作者: 走神的阿圆's avatar 走神的阿圆 提交者: GitHub

modify tags (#744)

上级 755518d9
...@@ -55,13 +55,17 @@ def get_logs(log_reader, component): ...@@ -55,13 +55,17 @@ def get_logs(log_reader, component):
tags[run] = [tag] tags[run] = [tag]
fake_tags = {} fake_tags = {}
for key, value in tags.items(): for key, value in tags.items():
if key in log_reader.tags2name: if key in log_reader.tags2name:
fake_tags[log_reader.tags2name[key]] = value fake_tags[log_reader.tags2name[key]] = value
else: else:
fake_tags[key] = value fake_tags[key] = value
return fake_tags run2tag = {'runs': [], 'tags': []}
for run, tags in fake_tags.items():
run2tag['runs'].append(run)
run2tag['tags'].append(tags)
return run2tag
def get_scalar_tags(log_reader): def get_scalar_tags(log_reader):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册