lnls-fac / pyaccel

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

Translation and Rotation rework #136

Closed VitorSouzaLNLS closed 4 months ago

VitorSouzaLNLS commented 5 months ago

The present changes modifies the PyAccel Elements' properties: t_in, t_out, r_in and r_out following the latest improvements in lnls-fac/trackcpp#71.

There are new classes T() and R() to handle the comunication between the trackcpp double* arrays (t_in, t_out, r_in and r_out) to python NumPy arrays. The main pourpose of these new classes is the modified __setitem__ magic-function, that calls the trackcpp-element auxiliary reflag functions.