From 2613636d35f4ef84ec3d0f69220d5de6e94a8263 Mon Sep 17 00:00:00 2001 From: Robbi Bishop-Taylor Date: Thu, 21 Dec 2023 17:54:50 +1100 Subject: [PATCH] Small fixes --- tests/README.md | 2 +- tests/test_intertidal.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/README.md b/tests/README.md index c59a3e4..31849cc 100644 --- a/tests/README.md +++ b/tests/README.md @@ -2,4 +2,4 @@ ### Accuracy results - \ No newline at end of file + \ No newline at end of file diff --git a/tests/test_intertidal.py b/tests/test_intertidal.py index bd2a1f5..4743bbd 100644 --- a/tests/test_intertidal.py +++ b/tests/test_intertidal.py @@ -100,9 +100,6 @@ def test_dem_accuracy( times_local = accuracy_df.index.tz_convert(tz="Australia/Canberra") accuracy_df.index = times_local - # Get latest stats - corr, rmse, mae, r2, bias, slope = accuracy_df.iloc[-1] - # Create plot and add overall title fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(15, 7.5)) latest_time = times_local[-1].strftime("%Y-%m-%d %H:%M") @@ -133,7 +130,8 @@ def test_dem_accuracy( levels=30, ) - # Add text + # Add text (including latest accuracy annotations) + corr, rmse, mae, r2, bias, slope = accuracy_df.iloc[-1] ax1.annotate( f"Correlation: {corr:.2f}\n" f"R-squared: {r2:.2f}\n"