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

Fix unusable pixels usage in muon analysis #1151

Merged
merged 5 commits into from
Aug 31, 2023
Merged

Conversation

FrancaCassol
Copy link
Collaborator

@FrancaCassol FrancaCassol commented Aug 29, 2023

solves #1150

@@ -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]
Copy link
Member

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.

lstchain/reco/r0_to_dl1.py Outdated Show resolved Hide resolved
maxnoe
maxnoe previously approved these changes Aug 30, 2023
@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (47a5b40) 73.75% compared to head (7ce6604) 73.75%.

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           
Files Changed Coverage Δ
lstchain/calib/camera/calibration_calculator.py 91.42% <100.00%> (ø)
lstchain/reco/r0_to_dl1.py 93.15% <100.00%> (+0.01%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@morcuended
Copy link
Member

offtopic: why a pre-commit action is running in this PR?

@maxnoe
Copy link
Member

maxnoe commented Aug 30, 2023

I enabled it by accident for the whole cta-observatory organizaton, disabled it again

@rlopezcoto rlopezcoto merged commit 9197200 into main Aug 31, 2023
9 checks passed
@rlopezcoto rlopezcoto deleted the fix_unusable_pixels branch August 31, 2023 08:27
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.

4 participants