-
Notifications
You must be signed in to change notification settings - Fork 268
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
Properly transform between camera and telescope frame in muon fitter #2464
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2464 +/- ##
==========================================
- Coverage 92.47% 92.46% -0.01%
==========================================
Files 234 234
Lines 19816 19811 -5
==========================================
- Hits 18325 18319 -6
- Misses 1491 1492 +1 ☔ View full report in Codecov by Sentry. |
437c75a
to
011d6d7
Compare
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.
Given that this fixes #2467 and with that the effective vs. equivalent focal-length discrepancy with, according to the issue, up to 25% differences in the muon efficiencies, I'd argue that this needs a changelog entry.
@RuneDominik Yes, good point! I oversaw this change before. |
2d4c115
to
edbdeb9
Compare
edbdeb9
to
31e1c1e
Compare
@@ -309,7 +308,8 @@ def image_prediction_no_units( | |||
|
|||
def build_negative_log_likelihood( | |||
image, | |||
telescope_description, | |||
optics, | |||
geometry_tel_frame, |
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.
So here you change the function signature, but I can't see any test being modified to match this new signature. Did I simply miss it or is there intentionally no test of build_negative_log_likelihood
?
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.
The test is through the __call__
method of the class, there is no direct test of this method.
The muon code did some strange things to transform pixel coordinates from camera to telescope frame, probably from code before camera geometries could be transformed as a whole.