Skip to content
This repository was archived by the owner on Oct 25, 2022. It is now read-only.
This repository was archived by the owner on Oct 25, 2022. It is now read-only.

KeyError: 'sumw2' #29

Closed
Closed
@LovelyBuggies

Description

@LovelyBuggies

@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions