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

Fixed bug & couple of improvements in lstchain_dvr_pixselector #1237

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

moralejo
Copy link
Collaborator

Fixed long-standing BUG which made that the info in the DVR_settings file produced by the script contained only the information of the last subrun.

Improvements in logging

Now by default only 10 files (subruns) of the input set, distributed uniformly along the run, are actually processed to determine the DVR settings. This is to speed up the process (since the settings are determined for the whole run, we do not need to check all subruns).

file produced by the script contained only the information of the last
subrun.

Improvements in logging

Now by default only 10 files (subruns) of the input set, distributed uniformly
along the run, are actually processed to determine the DVR settings. This is
to speed up the process (since the settings are determined for the whole run,
we do not need to check all subruns).
@moralejo moralejo changed the title Fixed bug & couple of improvements Fixed bug & couple of improvements in lstchain_dvr_pixselector Feb 26, 2024
@@ -409,7 +459,7 @@ def main():
if run_id != current_run_number:
current_run_number = run_id
else:
filemode == 'a'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THIS was the blunder!

@moralejo moralejo requested a review from rlopezcoto February 26, 2024 20:06
Copy link

codecov bot commented Feb 26, 2024

Codecov Report

Attention: Patch coverage is 64.61538% with 23 lines in your changes are missing coverage. Please review.

Project coverage is 72.86%. Comparing base (ea23f6e) to head (e6da544).

Files Patch % Lines
lstchain/scripts/lstchain_dvr_pixselector.py 64.61% 23 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1237      +/-   ##
==========================================
- Coverage   72.87%   72.86%   -0.01%     
==========================================
  Files         133      133              
  Lines       13797    13819      +22     
==========================================
+ Hits        10054    10069      +15     
- Misses       3743     3750       +7     

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

@moralejo moralejo merged commit a453522 into main Feb 27, 2024
7 of 9 checks passed
@maxnoe maxnoe deleted the pixel_selector branch February 27, 2024 08:46
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.

2 participants