Skip to content

Commit

Permalink
Fix error message in ci.assert_raster_max_mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-braun committed Jan 10, 2025
1 parent d2a015d commit 28c5244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sertit/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def assert_raster_max_mismatch(
f"Too many mismatches !\n"
f"Number of mismatches: {nof_mismatch} / {nof_elements},\n"
f"Percentage of mismatches: {pct_mismatch:0.2f}% > {max_mismatch_pct}%\n"
f"Mean of mismatches: {np.mean(np.where(diffs != 0)):0.2f}"
f"Mean of mismatches: {np.nanmean(np.where(diffs != 0, diffs, np.nan)):0.2f}"
)


Expand Down

0 comments on commit 28c5244

Please sign in to comment.