Reikriam

REPL uproot error

Feb 7th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. >>> import uproot
  2. >>> import ROOT
  3. >>> filename = "tmp.root"
  4. >>> with uproot.recreate(filename) as f:
  5. ... f["hello"] = "world"
  6. ...
  7. >>> f = ROOT.TFile.Open(filename)
  8. >>> f.Get("hello")
  9. <cppyy.gbl.TObjString object at 0x55a162ff6750>
  10. >>> assert f.Get("hello") == "world"
  11. Traceback (most recent call last):
  12. File "<stdin>", line 1, in <module>
  13. AssertionError
Add Comment
Please, Sign In to add comment