Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

3.10.0

Compare
Choose a tag to compare
@reikdas reikdas released this 17 Sep 16:18
· 262 commits to master since this release
8808ff1

uproot can now write TTrees containing baskets with flat data!

Example -

import uproot
filename = "example.root"

b = uproot.newbranch(">i4", compression=uproot.LZMA(3))
branchdict = {"intBranch": b}
tree = uproot.newtree(branchdict)
a = [1, 2, 3, 4, 5]
with uproot.recreate(filename, compression=uproot.ZLIB(4)) as f:
     f["t"] = tree
     f["t"]["intBranch"].newbasket(a)