From fa7b492c85294d79a28fd7573cf63b2d4467ddf2 Mon Sep 17 00:00:00 2001 From: John Gerrard Holland Date: Tue, 19 Mar 2024 14:43:30 +0100 Subject: [PATCH] Update src/icesat2waves/local_modules/m_tools_ph3.py Co-authored-by: Carlos Paniagua --- src/icesat2waves/local_modules/m_tools_ph3.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/icesat2waves/local_modules/m_tools_ph3.py b/src/icesat2waves/local_modules/m_tools_ph3.py index 5ea7468..d597f01 100644 --- a/src/icesat2waves/local_modules/m_tools_ph3.py +++ b/src/icesat2waves/local_modules/m_tools_ph3.py @@ -314,12 +314,14 @@ def find_O(a, case="round"): def stats(a): _logger.debug( - f"shape: %s\n" - f"Nans: %s\n" - f"max: %s\n" - f"min: %s\n" - f"mean: %s" - , a.shape, np.sum(np.isnan(a)), np.nanmax(a), np.nanmin(a), np.nanmean(a)) + "shape: %s\nNans: %s\nmax: %s\nmin: %s\nmean: %s", + a.shape, + np.sum(np.isnan(a)), + np.nanmax(a), + np.nanmin(a), + np.nanmean(a) + ) + def stats_format(a, name=None):