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

decode tag before get log data (#896)

上级 3f95a563
......@@ -128,7 +128,7 @@ def get_scalar(log_reader, run, tag):
def get_scalar_data(log_reader, run, tag, type='tsv'):
run = log_reader.name2tags[run] if run in log_reader.name2tags else run
log_reader.load_new_data()
result = log_reader.get_log_data('scalar', run, tag)
result = log_reader.get_log_data('scalar', run, decode_tag(tag))
delimeter = '\t' if 'tsv' == type else ','
with io.StringIO() as fp:
csv_writer = csv.writer(fp, delimiter=delimeter)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册