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 buffer issue in highest density regions, adds tests #591

Merged
merged 4 commits into from Nov 18, 2021

Conversation

WenzDaniel
Copy link
Collaborator

What is the problem / what does the code in this PR do
Solves XENONnT/straxen#765 and adds additional test. The issue occurs if a single signals is divided into many small intervals e.g. bipolar noise. In this PR we change the default behavior from raising an error into returning np.nans in that case.

@JoranAngevaare
Copy link
Member

@WenzDaniel should we bump-version the associated nv/mv processing?

@WenzDaniel
Copy link
Collaborator Author

I was already wondering the same, in principle all runs which need this change were not processed anyhow. Other then that nothing was changed,

Copy link
Member

@JoranAngevaare JoranAngevaare left a comment

Choose a reason for hiding this comment

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

okay, sure. I suspect so from the changes but haven't checked in detail.

This is an "approve light" as I did not go through the code very minutiously, please merge if you are fully confident 😉

@JoranAngevaare JoranAngevaare merged commit 1c9b066 into master Nov 18, 2021
@JoranAngevaare JoranAngevaare deleted the fix_highest_density_regions branch November 18, 2021 15:22
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.

None yet

2 participants