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
Added IRNL correction script #74
Conversation
maybe adding a simple test(-s) to check and as examples |
What changes would be required to adapt this to a different machine, say FCC-hh, or a different configuration? Could be interesting to highlight this in some comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very superficial reading has shown no major critiqueable points
From the top of my head I can think of only two (and a half) things: minor:
a bit more cumbersome:
If the magnets are similarly named i.e. end in But all of this is "just" naming conventions. Once it is clear which magnets are the correctors and which magents belong to which side of which IP, the rest should work automatically. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor detail comments but looks great to me! Merge away when you want.
If you have some extra time on your hands it would be nice to write a bit about this in the OMC website, but maybe when the paper is published then it will be enough of a documentation by itself.
Sorry for the late review :)
def test_rdts(self, tmp_path: Path): | ||
"""Test that different RDTs can be corrected and only their correctors | ||
are returned. Also checks that the corrector values are varying between RDTs | ||
when they should. Octupole RDTs are used for this example. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, if it is not too much work, in time we parametrize this test to also include different orders. Definitely not merge blocking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about that, but I don't think we need to test EVERY case that makes sense physically. It's more important to test different ways the algorithm works (and already here I have quite a few redundancies in the tests)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two things I should test for though:
- use feed-down from corrector to correct lower order rdts
- use two sets of optics/RDTs to correct for at the same time.
Maybe I will add these before merge
Closes #73