accelmo.monitor¶
Live monitor for fits: plots from run logs, with optics recomputed from the knobs.
The monitor reads the run logs (accelmo.runlog) below a directory, so it
runs as its own process and never slows or blocks a fit. Optics are not logged:
an OpticsSource from the machine side recomputes them from the logged
knobs in background threads, and OpticsCache keeps every result on
disk. Panels are plain functions of a MonitorView; a
MonitorSpec bundles a machine’s source and panels.
Serve it with:
python -m accelmo.monitor RUN_LOG_ROOT --spec my_package.monitor:SPEC
and open http://localhost:5006 (through ssh -L 5006:localhost:5006 host
when it runs remotely). Requires the monitor extra (Panel).