Skip to content

Commit

Permalink
Fixed annotation error
Browse files Browse the repository at this point in the history
  • Loading branch information
tnipen committed Sep 26, 2023
1 parent dfe5146 commit 4fefeb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion verif/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ def _add_annotation(self, x, y, labels=None, color="k", alpha=1):
verif.util.error("'%s' not available as an annotation field" % k)
label += "%g " % labels[k][i]
else:
label = "%g %g" % (labels["value"][i], labels["key"][i])
label = "%g %g" % (labels["score"][i], labels["key"][i])
else:
label = labels[i]
else:
Expand Down
2 changes: 1 addition & 1 deletion verif/tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def test_annotate(self):
self.run_with_image("verif examples/raw.txt examples/kf.txt -m obsfcst -a")
self.run_with_image("verif examples/raw.txt examples/kf.txt -m obsfcst -a -x location")

self.run_with_image("verif examples/raw.txt examples/kf.txt -m mae -a -type map -af value,location")
self.run_with_image("verif examples/raw.txt examples/kf.txt -m mae -a -type map -af score,location")
self.run_with_image("verif examples/raw.txt examples/kf.txt -m mae -a -type map -afs 4")

def test_plotting_options(self):
Expand Down

0 comments on commit 4fefeb4

Please sign in to comment.