class rcognita.callbacks.StateCallback(logger, log_level='info')

StateCallback is a subclass of the Callback class that logs the state of a system object when the compute_closed_loop_rhs method of the System class is called.

Attributes: log (function): A function that logs a message at a specified log level.

__init__(logger, log_level='info')

Initialize a callback object.

  • logger (logging.Logger) – A logging object that will be used to log messages.

  • log_level (str) – The level at which messages should be logged.


__init__(logger[, log_level])

Initialize a callback object.

perform(obj, method, output)