Kmod
Analysis
This module contains the analysis functionality of kmod
.
It provides functions to calculate beta functions at different locations from K-modulation data.
- omc3.kmod.analysis.average_beta_from_Tune(Q, TdQ, l, Dk)[source]
Calculates average beta function in quadrupole from tune change
TdQ
anddelta K
.
- omc3.kmod.analysis.get_phase_from_model(kmod_input_params, plane)[source]
Get the phase from twiss model.
- omc3.kmod.analysis.return_sign_for_err(n)[source]
Creates an array for error calculation, of form: [[ 0. 0. 0.] [ 1. 0. 0.] [-1. -0. -0.] [ 0. 1. 0.] [-0. -1. -0.] [ 0. 0. 1.] [-0. -0. -1.]] Columns corresponds to error, i.e. first column for dQ etc.
Constants
Specific constants to be used in kmod
, to help with consistency.
Helper
This module contains helper functionality for kmod
.
It provides functions to perform data cleaning, IO loading and plotting.