desy-ml / cheetah

Fast and differentiable particle accelerator optics simulation for reinforcement learning and optimisation applications.
https://cheetah-accelerator.readthedocs.io
GNU General Public License v3.0
33 stars 13 forks source link

Rename `Segment` to `Line` #59

Open jank324 opened 1 year ago

jank324 commented 1 year ago

It might make sense to rename the Segment class to Line to be more in line with some other codes and the LatticeJSON format. We could then introduce a higher-level class that holds multiple Line objects and is more comparable to the contents of a LatticeJSON file.