chromaticity#
- class ConfigModel(*, name, description=None, lattice_names=None, sextu_array_name, chromaticty_monitor_name, response_matrix)[source]#
Bases:
ElementConfigModelConfiguration 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.
- response_matrix: str | ResponseMatrixData#
- class Chromaticity(cfg)[source]#
Bases:
TuningToolClass providing chromaticity adjustment tool
Construct a chromaticity adjustment object.
- Parameters:
cfg (ConfigModel) – Configuration for the tune adjustment.
- correct(dchroma)[source]#
Return delta strengths for chromaticity correction
- Parameters:
dchroma (np.array) – Delta chroma
- load(load_path)[source]#
Dynamically loads a response matrix.
- Parameters:
load_path (Path) – Filename of the
ResponseMatrixDatato load
- property response_matrix: ResponseMatrixData | None#
Return the response matrix if it has been loaded None otherwise