lnls-fac / pyaccel

Python module for beam dynamics tracking and optics calculations
MIT License
7 stars 5 forks source link

LATT.BUG: Fix error rotation roll methods for dipoles #124

Closed VitorSouzaLNLS closed 1 year ago

VitorSouzaLNLS commented 1 year ago

Fix set_error_rotation_roll: this function was exactly the same as the add function, not setting, just adding... Fix get_error_rotation_roll: the "get" method should be different between dipoles and the other elements. The angle was calculated with R_in matrix, however, for dipoles the rotation roll is set by changing polynomials A and B, then in this case the angle for dipoles was always returning 0. Now the get method calculates the angle with polynom A for dipoles and with R_in matrix for other elements.