Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct bug in model and measured ORM #61

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

SebastienJoly
Copy link
Collaborator

One bug fix and one improvement when dealing with the calculation of ORM.

Correction of a bug fix in the response_model.SCgetModelRING function where the elements from the original SC.RING PolynomB[0] is set to zero. This is caused by the mutable nature of SC.RING[ord].SetPointA. It can be avoided with a deepcopy. The bug was observed after all my elements with embedded CM lost their corrector strengths after using the response_model.SCgetModelRING function.

Improvement of the loco.measure_closed_orbit_response_matrix function where the CM setpoints are reverted back to their initial value instead of applying the opposite dkick. If the dkick leads the CM strength to exceed its maximum value specified in its CMlimit attribute, computing the measured ORM changes some CM strengths.

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.

1 participant