Skip to content

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