matscipy.logger

Log status to screen.

Functions

flatten(x)

hdr_str(s, x)

Return header description strings

hdrfmt_str(x, i)

Return header format string for datatype x

numfmt_str(x, i)

Return numeric format string for datatype x

Classes

Logger([logfile, outevery, sepevery])

Methods

matscipy.logger.hdr_str(s, x)

Return header description strings

matscipy.logger.hdrfmt_str(x, i)

Return header format string for datatype x

matscipy.logger.numfmt_str(x, i)

Return numeric format string for datatype x

matscipy.logger.flatten(x)
class matscipy.logger.Logger(logfile=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, outevery=1, sepevery=10)

Bases: object

Methods

flush

get_logfile

has_logfile

iteration_finished

pr

set_logfile

set_outevery

st

warn

__init__(logfile=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, outevery=1, sepevery=10)
flush()
set_logfile(logfile)
pr(s, caller=None, logfile=None)
warn(s, caller=None)
st(hdr, vals, force_print=False)
iteration_finished()
get_logfile()
has_logfile()
set_outevery(outevery)