You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When slicing a histogram, and summing over the sliced axis, the values which have been "sliced away" enter the sum.
I am not sure if this is a bug or an expected behaviour.
If the behaviour is expected, I would greatly appreciate if you could tell me how this operation should properly be done.
This is the expected behavior. Leaving an endpoint off will include underflow or overflow; you should think of no endpoint as "infinite". If you don't want this behavior, make the endpoints explicit (such as [0:len:sum]), or use an axis that does not have flow bins (underflow=False, overflow=False when you make the axis). For a category axis, there is only an overflow bin, and we don't have a no flow version (IIRC), so you should use the first suggestion.
Hi @henryiii , thanks for your explanation.
As I can not easily change the code which does the sum, I circumenvented the problem by using two histograms.
Thank you for your help.
Closing the issue as this appears to be the expected behavior.
Describe the bug
When slicing a histogram, and summing over the sliced axis, the values which have been "sliced away" enter the sum.
I am not sure if this is a bug or an expected behaviour.
If the behaviour is expected, I would greatly appreciate if you could tell me how this operation should properly be done.
Issue may be linked to #281.
Steps to reproduce
The text was updated successfully, but these errors were encountered: