accelmo.monitor.view¶
What a panel gets to draw from.
- class accelmo.monitor.view.MonitorView(stage, step, history, knobs, references, optics, summaries, s_range)[source]¶
Bases:
objectThe selected stage and step, and everything known about them so far.
Optics-related fields are
None(or empty) until the background workers have computed them, or when the monitor runs without an optics source; a panel should draw what it can and say what it is waiting for.- Parameters:
stage (StageLog)
step (int)
history (pd.DataFrame)
knobs (pd.DataFrame)
references (dict[str, pd.DataFrame] | None)
optics (pd.DataFrame | None)
summaries (pd.DataFrame)
s_range (Range1d | DataRange1d)
- step: int¶
The selected step; -1 is the start of the stage.
- history: DataFrame¶
Logged scalars, indexed by step.
- knobs: DataFrame¶
Knob values, indexed by step, one column per knob.
- references: dict[str, DataFrame] | None¶
The source’s knob-independent tables (measurement, design, …).
- summaries: DataFrame¶
The source’s summary of every step computed so far, indexed by step.
- s_range: Union[Range1d, DataRange1d]¶
Shared x-range for plots against longitudinal position, so zooming one zooms all and survives a refresh.