Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import uproot
- >>> import ROOT
- >>> filename = "tmp.root"
- >>> with uproot.recreate(filename) as f:
- ... f["hello"] = "world"
- ...
- >>> f = ROOT.TFile.Open(filename)
- >>> f.Get("hello")
- <cppyy.gbl.TObjString object at 0x55a162ff6750>
- >>> assert f.Get("hello") == "world"
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- AssertionError
Add Comment
Please, Sign In to add comment