From 0399770be36ae0f2ffc8e6f86e83090f457b68d7 Mon Sep 17 00:00:00 2001 From: John Gerrard Holland Date: Wed, 13 Mar 2024 18:20:04 -0400 Subject: [PATCH] Updates from PR review Co-Authored-By: Carlos Paniagua <68481491+cpaniaguam@users.noreply.github.com> --- src/icesat2waves/local_modules/m_tools_ph3.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/icesat2waves/local_modules/m_tools_ph3.py b/src/icesat2waves/local_modules/m_tools_ph3.py index d99848d..11b570a 100644 --- a/src/icesat2waves/local_modules/m_tools_ph3.py +++ b/src/icesat2waves/local_modules/m_tools_ph3.py @@ -193,7 +193,7 @@ def h5_load_v2(name, path, verbose=False): with h5py.File(path + name + '.h5','r') as h5f: if verbose: - _logger.debug("%s", h5f.keys()) + _logger.debug("%s h5f keys: %s", name, h5f.keys()) data_dict = {k: v[:] for k, v in h5f.items()} @@ -246,7 +246,7 @@ def write_log(hist, string, verbose=False, short=True, date=True): message = f"\n{now} {string}" if date else f"\n {string}" if verbose in [True, 'all']: - _logger.debug("%s", hist + message if verbose == 'all' else message) + _logger.debug("hist message: %s", hist + message if verbose == 'all' else message) return hist + message @@ -288,7 +288,7 @@ def load_log_txt(hist_file, path): def shape(a): for i in a: - _logger.debug(i.shape) + _logger.debug("shape of %s: %s", i, i.shape) def find_O(a, case="round"):