From c43ba89f445f43b8d88adc24739a4eb0461a46e0 Mon Sep 17 00:00:00 2001 From: ShenYuhan Date: Sat, 19 Sep 2020 16:34:44 +0800 Subject: [PATCH] fix pr display_name bug (#816) --- visualdl/server/lib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/visualdl/server/lib.py b/visualdl/server/lib.py index 00ee9550..8f273d6c 100644 --- a/visualdl/server/lib.py +++ b/visualdl/server/lib.py @@ -169,9 +169,10 @@ def get_pr_curve(log_reader, run, tag): def get_pr_curve_step(log_reader, run, tag=None): + fake_run = run run = log_reader.name2tags[run] if run in log_reader.name2tags else run run2tag = get_pr_curve_tags(log_reader) - tag = run2tag['tags'][run2tag['runs'].index(run)][0] + tag = run2tag['tags'][run2tag['runs'].index(fake_run)][0] log_reader.load_new_data() records = log_reader.data_manager.get_reservoir("pr_curve").get_items( run, decode_tag(tag)) -- GitLab