Interact#

Classes#

InteractiveOpticalTable#

class InteractiveOpticalTable(fileName: str, FPS: int = 20)[source]#

Bases: object

GUI/CLI helper around an experimental setup description file (Python). vars

dict mapping parameter name[value, min, max]. If both min and max are None the parameter is treated as a Boolean and rendered as a one‑box CheckButtons widget.

Optionally it can expose

presets

dict[str, dict] mapping preset name to a vars‑like dictionary. Each preset entry may list only the parameters it wants to override; any parameter omitted from a preset keeps the current slider state.

PLOT_TYPE

Optional, either "Z" (default) or "3D".

__init__(fileName: str, FPS: int = 20)[source]#
create_sliders()[source]#

Slider + “Opt.” checkbox for every parameter.

slider_interactive()[source]#
update_table(**params)[source]#
optimize_selected(maximise=False)[source]#
optimize(maximize=False)[source]#
scan(param_x: str, values_x, param_y: str, values_y, *, cmap='viridis', show=True)[source]#