rcognita.callbacks.StateCallback
- 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.
- Parameters
logger (logging.Logger) – A logging object that will be used to log messages.
log_level (str) – The level at which messages should be logged.
Methods
__init__
(logger[, log_level])Initialize a callback object.
perform
(obj, method, output)