fix: writing TProfiles from hist#1532
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. |
|
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 |
|
Hello @ariostas I tried a simple test, but I see problems. I attach an example pickle file. The second is always zero. |
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.