From 4fefeb4de8299e104ddd7fea4507c055b4e820c6 Mon Sep 17 00:00:00 2001 From: Thomas Nipen Date: Tue, 26 Sep 2023 18:18:40 +0200 Subject: [PATCH] Fixed annotation error --- verif/output.py | 2 +- verif/tests/test_integration.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/verif/output.py b/verif/output.py index f0bd65e..69f2f8d 100644 --- a/verif/output.py +++ b/verif/output.py @@ -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: diff --git a/verif/tests/test_integration.py b/verif/tests/test_integration.py index 484fba7..d0b17df 100644 --- a/verif/tests/test_integration.py +++ b/verif/tests/test_integration.py @@ -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):