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

Unable to create unsigned integer branches #505

Open
masonproffitt opened this issue Jul 10, 2020 · 1 comment
Open

Unable to create unsigned integer branches #505

masonproffitt opened this issue Jul 10, 2020 · 1 comment

Comments

@masonproffitt
Copy link
Contributor

This is what I get when I try to make an unsigned integer branch:

>>> import numpy as np
>>> import uproot
>>> file = uproot.recreate('test.root')
>>> file['tree'] = uproot.newtree({'branch': np.uint32})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.8/site-packages/uproot/write/TFile.py", line 84, in __setitem__
    what = TTree(where, what, self)
  File "/usr/lib/python3.8/site-packages/uproot/write/objects/TTree.py", line 85, in __init__
    self._branches[name] = TBranch(name, branch, compression, self, file)
  File "/usr/lib/python3.8/site-packages/uproot/write/objects/TTree.py", line 252, in __init__
    self._branch = TBranchImpl(name, branchobj, compression, file)
  File "/usr/lib/python3.8/site-packages/uproot/write/objects/TTree.py", line 820, in __init__
    raise NotImplementedError
NotImplementedError
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants