MethodLog#
- class libcasm.monte.MethodLog(
- self: MethodLog,
- logfile_path: str | None = None,
- log_frequency: SupportsFloat | SupportsIndex | None = None,
Bases:
pybind11_objectLogger for Monte Carlo method status
Constructor
- Parameters:
logfile_path (Optional[str]) – File location for log output. If None, log to stdout.
log_frequency (Optional[float]) – How often to log method status, in seconds
Methods
begin_lap(…)Begin a new lap.
Begin a section which always prints, for every verbosity_level.
Begin a section which only prints if verbosity_level >= "debug".
Begin a section which only prints if verbosity_level >= "quiet".
Begin a section which only prints if verbosity_level >= "standard".
Begin a section which only prints if verbosity_level >= "verbose".
Decrease indent level.
end_section(…)End the current section.
hide_clock(…)Do not show time as a part of section headings.
Increase indent level.
indent_str(…)The current indent string.
lap_time(…)Time in seconds since begin_lap.
How often to log method status, in seconds
logfile_path(…)File location for log output
paragraph(…)Print with indent, line wrapping, and justification.
Return paragraph justification type.
Return paragraph width.
print(…)Print with indent.
reset(…)Reset log file, creating parent directories as necessary
Reset to print to stdout.
Restart internal timer.
section(…)Print a nicely formatted section header, optionally with the current timer value.
set_debug(…)Set to "debug" printing mode.
Set the number of spaces per indent level.
Set an initial number of indent spaces, before applying indent levels.
Set paragraph justification type.
Set paragraph width.
set_quiet(…)Set to "quiet" printing mode.
set_standard(…)Set to "standard" printing mode.
set_verbose(…)Set to "verbose" printing mode.
show_clock(…)Show time_s as a part of section headings.
time_s(…)Time in seconds since construction or restart_clock.
verbatim(…)Print with indent and line wrapping, without justification.