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

Online veto intervals fix #1331

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Online veto intervals fix #1331

wants to merge 4 commits into from

Conversation

mflierm
Copy link
Contributor

@mflierm mflierm commented Feb 13, 2024

What does the code in this PR do / what does it improve?

A dedicated veto_intervals plugin for the online monitor is proposed. This is because sometimes at high rate calibrations, all processing fails just because the veto intervals can not be inserted in the MongoDB (max size 16MB).

Can you briefly describe how it works?

If the original veto_intervals chunk exceeds a certain size, the data is randomly sampled. To keep the cumulative deadtime info, an extra dtype is added that takes the cumulative deadtime from the original veto_intervals, but only the random indices are kept (this gives the same total cumulative deadtime). To avoid the database to overload after all again, the same random sampling is done if the new data array would exceed 10MB.

p.s. commit c5e89bb was made by me (@mflierm), not by Joran (historical reasons).

@coveralls
Copy link

coveralls commented Feb 13, 2024

Coverage Status

coverage: 91.313% (-0.003%) from 91.316%
when pulling 7073632 on online_veto_intervals_fix
into b18e8f3 on master.

@yuema137 yuema137 self-requested a review March 12, 2024 20:40
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.

3 participants