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 creating a histogram with ROOT and serializing it with uproot, the GetEntries() (number of times it has been filled) count does not seem to get serialized correctly:
importROOTimportuprooth=ROOT.TH1D('h', 'h', 10, 0, 1)
h.Sumw2()
h.Fill(0.2, 0.1)
h.Fill(0.4, 0.5)
asserth.GetEntries() ==2.0# save with uproot, load with ROOTwithuproot.recreate("tmp.root") asf:
f["h"] =hg=ROOT.TFile.Open("tmp.root")
print(g["h"].GetEntries()) # this is 0.6 now, but should be 2
This was tested with uproot 5.3.10.
I originally ran into this when testing the serialization of hist histograms instead:
For this setup, the GetEntries() (after saving with uproot and loading with ROOT) similarly ends up being 0.6 but I am not sure if boost-histogram has this kind of property in the first place.
The text was updated successfully, but these errors were encountered:
When creating a histogram with ROOT and serializing it with
uproot
, theGetEntries()
(number of times it has been filled) count does not seem to get serialized correctly:This was tested with
uproot
5.3.10.I originally ran into this when testing the serialization of
hist
histograms instead:For this setup, the
GetEntries()
(after saving withuproot
and loading with ROOT) similarly ends up being0.6
but I am not sure if boost-histogram has this kind of property in the first place.The text was updated successfully, but these errors were encountered: