-
Notifications
You must be signed in to change notification settings - Fork 25
Add Relative Constraints to Calibration #723
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
Conversation
The relative constraints for the whole system require the detectors to all be translated and rotated together about the center of the system. This includes a fairly thorough test. It won't be that difficult to add relative constraints for groups too, but that should be done in a separate branch. Signed-off-by: Patrick Avery <[email protected]>
This is what the old tilt *actually* is... Signed-off-by: Patrick Avery <[email protected]>
I'm not sure if this will get used, but let's add it for consistency. It actually makes some changes elsewhere easier. Signed-off-by: Patrick Avery <[email protected]>
|
Hello @psavery! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2024-10-15 21:55:16 UTC |
5d651b3 to
b8bdd47
Compare
The classes keep track of the current values of the relative parameters (before they were modified by lmfit). This is necessary for modifying all detectors by the diff of the change. Signed-off-by: Patrick Avery <[email protected]>
b8bdd47 to
ad7f741
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #723 +/- ##
==========================================
+ Coverage 38.78% 39.11% +0.33%
==========================================
Files 134 135 +1
Lines 21988 22168 +180
==========================================
+ Hits 8527 8670 +143
- Misses 13461 13498 +37 ☔ View full report in Codecov by Sentry. |
saransh13
left a comment
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.
LGTM
This adds system relative constraints, where the entire detector system can be tilted/translated.
The center of rotation for the tilt is always about the mean center of the detectors.
This is an ideal setup if many subpanels are present, but their relative positions and tilts should remain fixed, while the entire system is allowed to calibrate.