This repository was archived by the owner on Sep 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
KeyError: 'sumw2' #29
Copy link
Copy link
Closed
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.
aghast/python/aghast/_connect/_root.py
Lines 160 to 165 in 2a57c6c
| 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.
Metadata
Metadata
Assignees
Labels
No labels