Skip to content

Simple way to evaluate ratio plot in uproot? #642

Answered by MoAly98
qibin2020 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Qibin! I am not an expert, but as far as I understand the division of histograms in boost_histogram is not fully complete yet. AFAIK the division of weighted histograms is not done yet (see boost-histogrma issue). Possibly one way around this is to define your own divide function to divide the histogram values as numpy arrays then compute the error using the ratio_uncertainty method from scikit-hep/Hist ? You can then assign to the results to a boost-histogram/ Hist object.

I am sure there are better ideas from the experts here, but maybe that's one way :)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@qibin2020
Comment options

@jpivarski
Comment options

@qibin2020
Comment options

@jpivarski
Comment options

Answer selected by qibin2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants