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
25 stars 12 forks source link

Drift name #201

Closed ansantam closed 5 days ago

ansantam commented 5 days ago

Description

Adding name to Drift element.

Motivation and Context

When Cheetah does not recognize an element it transforms it to a Drift of the corresponding length to keep the correct element positions. It is useful to have the element name attached to the Drift in case the original one was not a drift, for better understanding of the lattice when inspecting the Segment.

Types of changes

Checklist

Note: We are using a maximum length of 88 characters per line