-
Notifications
You must be signed in to change notification settings - Fork 77
Added protection for rebin bin time #658
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
Conversation
5c18ea2 to
2696937
Compare
2696937 to
7bb74d8
Compare
9937bad to
f63afc8
Compare
gonzaponte
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect! Good way to get rid of the negative weights that were messing up the order of the time bins.
f63afc8 to
a35d28d
Compare
Only uses positive charge for weighting to avoid non-sequential bins.
Data had a peak affected by -ve charges data updated to represent new expectation
420b37c to
1841241
Compare
|
Are you sure about this last commit? I don't think there is a huge difference in any case, but at first glance, the previous option seems less invasive, meaning that you only do something when it is actually needed. |
|
Yes, sorry. I realised after the push that it was wrong and undid it. We're seeing some fail paths though due to an issue with the deconv and/or the selection of the peaks. I'mm looking at protections but I think it's a wider issue that should be addressed so I'll put an issue |
|
I'm going to close this pull request as we found some failures in high statistics testing. The changes plus additional protections are revisited in PR #683 |
#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!
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!
Only uses positive charge for
weighting to avoid non-sequential
bins.