iwfm.debugΒΆ

Classes, methods and functions for debugging scripts to use IWFM and IGSM files.

Modules

check_key(d, key)

Check if key is in dictionary, for debugging.

debug

Typer subapp for IWFM developer/diagnostic commands.

exe_time()

Track the time since the first call and print the elapsed time on subsequent calls.

logger_setup

Logger_setup.py.

print_dict(d)

Print contents of a dictionary, for debugging.

print_env()

Print some environment variables to the console, for debugging.

print_exe_time(start, end[, verbose])

Function print_exe_time(start, end) returns the time between two datetime values as a sting hh:mm:ss,.

test_dict(name, d, key)

Print dictionary value for key.

this_python()

Return the Python version as a string, for debugging.

this_sys()

Return the OS name as a string.

this_sys_version()

Return the OS version as a string, for debugging.

timer(function)

Wrapper to display function execution time.