Skip to content

Commit

Permalink
Updates from PR review
Browse files Browse the repository at this point in the history
Co-Authored-By: Carlos Paniagua <[email protected]>
  • Loading branch information
hollandjg and cpaniaguam committed Mar 13, 2024
1 parent c3dcebd commit 0399770
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/icesat2waves/local_modules/m_tools_ph3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()}

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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"):
Expand Down

0 comments on commit 0399770

Please sign in to comment.