I am trying to load a Higgs Boson dataset from uproot. I am not comfortable with the use of uproot and the .root data type. I am using the following code which is a sort of official instructions to load the library. I have made a virtual environment and installed the necessary libraries
import oamap.source.root
import uproot
events = uproot.open("http://scikit-hep.org/uproot/examples/HZZ.root")["events"].oamap()
I am getting the following error while running the above sample code.
Traceback (most recent call last):
File "main.py", line 4, in <module>
events = uproot.open("http://scikit-hep.org/uproot/examples/HZZ.root")["events"].oamap()
File "/home/akash/DIANAhep/lib/python3.5/site-packages/oamap/source/root.py", line 187, in __call__
generator = self.schema.generator()
File "/home/akash/DIANAhep/lib/python3.5/site-packages/oamap/source/root.py", line 184, in schema
return oamap.schema.List(recurse(self.tree), starts="", stops="")
File "/home/akash/DIANAhep/lib/python3.5/site-packages/oamap/source/root.py", line 138, in recurse
x = frominterp(name, branch, uproot.interp.auto.interpret(branch))
File "/home/akash/DIANAhep/lib/python3.5/site-packages/oamap/source/root.py", line 100, in frominterp
return oamap.schema.Primitive(interpretation.todtype, data=name)
File "/home/akash/DIANAhep/lib/python3.5/site-packages/oamap/schema.py", line 346, in __init__
self.data = data
File "/home/akash/DIANAhep/lib/python3.5/site-packages/oamap/schema.py", line 418, in data
raise TypeError("data must be None or an array name (string), not {0}".format(repr(value)))
TypeError: data must be None or an array name (string), not b'NJet'
I am novice in these sort of loading dataset.