Skip to content

TRACK.BUG: Fix calc_twiss bug#56

Merged
anacso17 merged 3 commits intomasterfrom
twiss-bug
Sep 16, 2022
Merged

TRACK.BUG: Fix calc_twiss bug#56
anacso17 merged 3 commits intomasterfrom
twiss-bug

Conversation

@jquentino
Copy link
Copy Markdown
Contributor

When the quantum excitation is on, the tracking algorithms can't find 4D and 6D orbits, the same happens for the find one turn matrices algorithms. In a failed attempt to avoid this problem, I added in Pyaccel some lines to temporarily turn off the quantum excitation when computing the orbit by the find_orbit function (lnls-fac/pyaccel#113).

However, the Pyaccel calc_twiss directly uses the Trackcpp find_orbit functions instead of the Pyaccel ones, which introduces a bug because the first hasn't had the mechanism of temporarily turning off the quantum excitation implemented on it. This PR changes Trackcpp find orbit and find one turn matrices functions to fix this bug by implementing the above-described mechanism.

@fernandohds564
Copy link
Copy Markdown
Contributor

thanks @jquentino. I'll make a PR in pyaccel reverting the changes that temporarily turn off quantum excitation while calculating the closed orbit too.

@anacso17 anacso17 merged commit 8e33e6b into master Sep 16, 2022
@anacso17 anacso17 deleted the twiss-bug branch September 16, 2022 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants