trtools.utils.common module

Common util functions

trtools.utils.common.MSG(msg, debug=False)

Write a status message to standard error

Parameters
  • msg (str) – A descriptive message

  • debug (bool, optional) – Only print the message if debug is True

Examples

>>> MSG("Something unexpected happened")
trtools.utils.common.WARNING(msg)

Write a warning message to standard error

Parameters

msg (str) – A descriptive warning message

Examples

>>> WARNING("Something unexpected happened")