Closed jank324 closed 2 months ago
I have only one minor concern: I guess when you have a real aperture with non-length, the beam should be smaller than some threshold over the whole length.
Would it make more sense to convert it to [Aperture_start, Drift, Aperture_end]
?
Edit: looking at the Bmad manual it happens only at the "exit end" by default
I have only one minor concern: I guess when you have a real aperture with non-length, the beam should be smaller than some threshold over the whole length. Would it make more sense to convert it to
[Aperture_start, Drift, Aperture_end]
?Edit: looking at the Bmad manual it happens only at the "exit end" by default
I was thinking about the same thing. In the end, only an infinite number of apertures would be truly correct. But this quick fix worked well enough to fix the mismatch I had. We can think about adding more options or even a Collimator
element at a later date if this is not enough.
Description
Changes in interpretation of Bmad
ecollimator
andrcollimator
in Cheetah from a lengthlessAperture
element to aDrift
+Aperture
sequence.Motivation and Context
This was a bug found in the LCLS import that led to a Twiss mismatch. See #248.
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.