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: object

The 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)

stage: StageLog
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, …).

optics: Optional[DataFrame]

The optics at step.

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.

accelmo.monitor.view.uncertainty_status(info)[source]

One status line for the uncertainty stage recorded in uncertainty.json, or None.

Return type:

str | None

Parameters:

info (dict[str, Any] | None)