Skip to content

Rebinning in the framework #451

Discussion options

You must be logged in to vote

Not currently, but this is planned: see #412 and a draft in #418. The best way to support this in my opinion is along the lines of what you show, allowing users provide explicit bin edges. This requires the feature to be supported upstream in hist, see scikit-hep/hist#345. At the moment this upstream issue blocks a proper implementation. The branch in #418 only supports uniform rebinning right now (which works for your example, but would e.g. not work for a target binning of [0, 250, 1000]).

An example for how to currently achieve rebinning can be found here: high-level API and implementation. It makes use of template builder overrides and works with histogram inputs. You would have to ha…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Tomoya-Iizawa
Comment options

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