Function morpheus::utilities::show_warning_message

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 than logger.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

© Copyright 2023, NVIDIA. Last updated on Apr 11, 2023.