Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
robbibt authored Dec 21, 2023
1 parent e1bd22a commit 2613636
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

### Accuracy results

<img src="validation.jpg" width="500"/>
<img src="validation.jpg" width="950"/>
6 changes: 2 additions & 4 deletions tests/test_intertidal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 2613636

Please sign in to comment.