Callbacks#
OptimizationLogger#
- class bluesky_adaptive.callbacks.logger.OptimizationLogger(console=None, **kwargs)[source]#
Bases:
CallbackBaseA Bluesky callback for displaying optimization progress to the console.
This callback provides structured, styled console output during optimization runs using the
richlibrary. It listens for documents from theoptimizeplan and displays:A header panel with optimizer configuration at run start
A formatted table of parameter and outcome values for each step event
a box coloring indicating sectioning by iteration
A compact inline summary of outcome statistics after every 5 steps
A full summary statistics table at run completion
Notes
Multiple consecutive optimization runs will accumulate iteration counts and statistics.
- start(doc)[source]#
Process the start document from the Bluesky run.
Logs the optimization setup observed from metadata.
- descriptor(doc)[source]#
Cache the parameter and outcome fields named by the descriptor’s
object_keys.