This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Description
@jpivarski There might be a bug: when I run the code
root_hist = aghast.to_root(ghastly_hist, "root_hist")
A KeyError is thrown. It says no key "sumw2" is found. I search <"sumw2"> in this file and find this is the only one.
|
sumw = obj.counts[tuple(slc)] |
|
if isinstance(sumw, dict): |
|
sumw, sumw2 = sumw["sumw"], sumw["sumw2"] |
|
sumw2 = numpy.array(sumw2, dtype=numpy.float64, copy=False) |
|
else: |
|
sumw2 = None |
P.S., I am using pip install aghast, so the package I'm using might be a little out of date. But I check the latest code and the latest PR #24 , there are no changes with respect to to_root() in this file.