Function morpheus::utilities::show_warning_message
Defined in File python_util.cpp
-
void morpheus::utilities::show_warning_message(const std::string &deprecation_message, PyObject *category = nullptr, ssize_t stack_level = 1)
Shows a python warning using the
warnings.warn
module. These warnings can be suppressed and work different thanlogger.warn()
- Parameters
deprecation_message – The message to show
category – A Python warning message type such as
PyExc_DeprecationWarning
stack_level – If the warning should appear earlier up in the stack, set this to >1