chromaticity#

class ConfigModel(*, name, description=None, lattice_names=None, sextu_array_name, chromaticty_monitor_name, response_matrix)[source]#

Bases: ElementConfigModel

Configuration model for Tune

Parameters:
  • sextu_array_name (str) – Array name of sextu used to adjust the chromaticity

  • chromaticty_monitor_name (str) – Name of the diagnostic pyaml device for measuring the chromaticity

  • response_matrix (str | ResponseMatrixData) – filename or data of the chromaticity response matrix

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

chromaticty_monitor_name: str#
response_matrix: str | ResponseMatrixData#
sextu_array_name: str#
class Chromaticity(cfg)[source]#

Bases: TuningTool

Class providing chromaticity adjustment tool

Construct a chromaticity adjustment object.

Parameters:

cfg (ConfigModel) – Configuration for the tune adjustment.

add(dchroma, wait_time=0.0)[source]#

Add delta chromaticity to the actual chromaticity

Parameters:
  • dchroma (np.array) – Delta tune

  • iter_nb (int)

  • wait_time (float)

correct(dchroma)[source]#

Return delta strengths for chromaticity correction

Parameters:

dchroma (np.array) – Delta chroma

get()[source]#

Return the chromaticity setpoint

load(load_path)[source]#

Dynamically loads a response matrix.

Parameters:

load_path (Path) – Filename of the ResponseMatrixData to load

readback()[source]#

Launch a chromaticty scan and returns the measured chromaticity.

set(chroma, iter=1, wait_time=0.0)[source]#

Sets the chromaticity

Parameters:
  • chromaticity (np.array) – Chromaticity setpoint

  • iter_nb (int) – Number of iteration

  • wait_time (float) – Time to wait in second between 2 iterations

property response_matrix: ResponseMatrixData | None#

Return the response matrix if it has been loaded None otherwise