pylhc / Beta-Beat.src

Many scripts and files for beam optics simulations & measurements in the LHC
https://pylhc.github.io/Beta-Beat.src/
8 stars 10 forks source link

Refactor and fix beta.py in GetLLM #205

Closed Mael-Le-Garrec closed 3 years ago

Mael-Le-Garrec commented 3 years ago

The funciton calculate_beta_from_amplitude had some errors due to copy pasted code. Namely: β mdl and β values were inverted for the free.out file in the Y plane.

The code now loops through both planes and does the exact same calculations on both to avoid errors.

https://its.cern.ch/jira/browse/BBGUI-158