-
Notifications
You must be signed in to change notification settings - Fork 77
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
Fix unusable pixels usage in muon analysis #1151
Conversation
lstchain/reco/r0_to_dl1.py
Outdated
@@ -661,7 +661,8 @@ def r0_to_dl1( | |||
|
|||
# Muon ring analysis, for real data only (MC is done starting from DL1 files) | |||
if not is_simu: | |||
bad_pixels = event.mon.tel[telescope_id].calibration.unusable_pixels[0] | |||
bad_pixels = source.r0_r1_calibrator.mon_data.tel[telescope_id].calibration.unusable_pixels[0] |
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 add a comment that we want to use the fixed pixel list from the loaded calibration file instead of the new calibration maybe filled into event.mon
?
Otherwise looks good.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1151 +/- ##
=======================================
Coverage 73.75% 73.75%
=======================================
Files 124 124
Lines 12589 12590 +1
=======================================
+ Hits 9285 9286 +1
Misses 3304 3304
☔ View full report in Codecov by Sentry. |
offtopic: why a pre-commit action is running in this PR? |
I enabled it by accident for the whole |
solves #1150