tune#
- class ConfigModel(*, name, description=None, lattice_names=None, quad_array_name, betatron_tune_name, response_matrix)[source]#
Bases:
ElementConfigModelConfiguration model for Tune
- Parameters:
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 Tune(cfg)[source]#
Bases:
TuningToolClass providing tune adjustment tool
Construct a Tune adjustment object.
- Parameters:
cfg (ConfigModel) – Configuration for the tune adjustment.
- correct(dtune)[source]#
Return delta strengths for tune correction
- Parameters:
dtune (np.array) – Delta tune
- 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