-
Notifications
You must be signed in to change notification settings - Fork 87
fix: writing TProfiles from hist #1532
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
|
@pfackeldey could you take a look at this since you're good with histograms? |
|
thanks, it seems to work, even if I have to simplify my original code. For example with By the way, I get a warning |
|
Thank you, @wiso! I fixed the warning and the WeightedMean storage. I'll follow up on the ND profiles on a separate PR. |
ianna
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.
@ariostas - looks great! Thanks. Please merge it if you are done with it. Thanks!
|
I think this should be reopen, the values I get when reading the written object are not correct. Test case with output I guess the main problem is that when retrieving the histogram from uproot the bin type is |
This PR adds some flexibility to the
histprofiles that can be written to file. The old code was assuming ROOT histograms that were converted tohistwithto_hist, which adds some metadata, but if the metadata was not present it just didn't work. Someone should double-check that I'm inputting the right data intoto_TProfile. Closes #1531.