Skip to content

Commit

Permalink
fix pr display_name bug (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShenYuhan authored Sep 19, 2020
1 parent 29791b8 commit c43ba89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion visualdl/server/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c43ba89

Please sign in to comment.