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

Protect rebin #687

Merged
merged 7 commits into from
Dec 31, 2019
Merged

Protect rebin #687

merged 7 commits into from
Dec 31, 2019

Conversation

andLaing
Copy link
Collaborator

This PR reopens #658 with an added patch to protect
against attempts to rebin using only negative charge bins.

Tests are added to demonstrate the problems and their
solution.

Copy link
Collaborator

@mmkekic mmkekic left a comment

Choose a reason for hiding this comment

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

The 2 tests show ill-behaved old version of rebinning algorithm and the need to fix the bugs. The fix ensures that the bin position after rebinning will be physical. This PR still doesn't fix the problem of negative waveforms after the rebinning (this was intended in PR #683) , as I understand this is left to the future PR of @ausonandres and @msorel.

Copy link
Collaborator

@mmkekic mmkekic left a comment

Choose a reason for hiding this comment

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

This PR demonstrates and fixes the bug in weighted rebinning of the waveforms with negative weights. The change is minimal and clear, and the test are relevant for any kind of future refactoring of irene city. Good job!

carmenromo added a commit that referenced this pull request Dec 31, 2019
#687

[author: andLaing]

This PR reopens #658 with an added patch to protect against attempts
to rebin using only negative charge bins.

Tests are added to demonstrate the problems and their solution.

[reviewer: mmkekic]

This PR demonstrates and fixes the bug in weighted rebinning of the
waveforms with negative weights. The change is minimal and clear, and
the test are relevant for any kind of future refactoring of irene
city. Good job!
@carmenromo carmenromo merged commit c44680b into next-exp:master Dec 31, 2019
andLaing pushed a commit to andLaing/IC that referenced this pull request May 13, 2020
next-exp#687

[author: andLaing]

This PR reopens next-exp#658 with an added patch to protect against attempts
to rebin using only negative charge bins.

Tests are added to demonstrate the problems and their solution.

[reviewer: mmkekic]

This PR demonstrates and fixes the bug in weighted rebinning of the
waveforms with negative weights. The change is minimal and clear, and
the test are relevant for any kind of future refactoring of irene
city. Good job!
@andLaing andLaing deleted the protect-rebin branch November 2, 2020 12:57
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