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.
[ ] I have raised an issue to propose this change (required for new features and bug fixes)
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation (update in the documentation)
Checklist
[x] I have updated the changelog accordingly (required).
[ ] My change requires a change to the documentation.
[ ] I have updated the tests accordingly (required for a bug fix or a new feature).
[ ] I have updated the documentation accordingly.
[x] I have reformatted the code and checked that formatting passes (required).
[x] I have have fixed all issues found by flake8 (required).
[x] I have ensured that all pytest tests pass (required).
[x] I have run pytest on a machine with a CUDA GPU and made sure all tests pass (required).
[x] I have checked that the documentation builds (required).
Note: We are using a maximum length of 88 characters per line
Description
Adding
name
toDrift
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 theDrift
in case the original one was not a drift, for better understanding of the lattice when inspecting theSegment
.Types of changes
Checklist
flake8
(required).pytest
tests pass (required).pytest
on a machine with a CUDA GPU and made sure all tests pass (required).Note: We are using a maximum length of 88 characters per line