Extensions

class lys_instr.PreCorrection.PreCorrector(controllers)[source]

Bases: QObject

Corrector that manages inter-axis dependencies and applies value corrections.

This class automatically applies configured correction callables whenever controller axis targets change. Correction parameters are stored in _correctParams, which maps a target axis name to a callable that computes the corrected value from current master-axis parameters. The corrector expects controllers passed to the constructor to provide a busyStateChanged Qt signal and a nameList iterable of axis names (typically motors).

property controllers

Controller instances.

Returns:

Mapping of axis name (str) to controller instance.

Return type:

dict

property corrections

Configured correction callables.

Returns:

Mapping of target name to correction callable (typically _FunctionCombination) that computes the corrected value.

Return type:

dict

class lys_instr.gui.PreCorrection.PreCorrectorGUI(obj)[source]

Bases: QWidget

Correction GUI subwindow.

Provides a tree view for editing correction targets (motor-axes) and their correction functions, and a control to create new ones.