Conversation
Contributor
Author
|
ready for review |
Contributor
|
@lcarver I have just pushed a possible simplification for the get_energy_loss function |
Contributor
|
Please make sure you run ruff checks on the modified files, thanks! |
Contributor
Author
|
all fine for me. My tests work, I ran ruff and black. I also cleaned up the C a little bit (but more work to be done on this soon!) and my test still works fine. |
Contributor
Author
|
ready for merge |
swhite2401
approved these changes
Sep 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There was a problem with the computation of the beam induced voltage when gaps were present in the ring. This bug has been present since January #1025 . Basically, the cavity phasor was adjusted by one bucket whether a bunch was present or not, but then when the next bunch arrived, the full previous gap was applied again (incorrectly).
This is now fixed.
This PR also uncovers a problem with
get_energy_losssince the recent fast ring upgrade.get_timelag_fromU0does not return the same number fortsfor each cavity. There is a temporary fix in place until @swhite2401 can provide a cleaner fix.Below is an example script for BessyII (my TBL benchmark case).