Skip to content

Problem accessing subbranches and/or leaves #1030

Answered by jpivarski
ivoschulthess asked this question in Q&A
Discussion options

You must be logged in to vote

There does seem to be something wrong: just trying to look at the interpretation of tree["CDT0"] causes an exception inside of Uproot.

>>> tree["CDT0"].interpretation
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jpivarski/irishep/uproot5/src/uproot/behaviors/TBranch.py", line 1935, in interpretation
    self._interpretation = uproot.interpretation.identify.interpretation_of(
  File "/home/jpivarski/irishep/uproot5/src/uproot/interpretation/identify.py", line 407, in interpretation_of
    _leaf_to_dtype(leaf, getdims=True).newbyteorder(">"),
  File "/home/jpivarski/irishep/uproot5/src/uproot/interpretation/identify.py", line 69, in _leaf_to_dtype
    

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ivoschulthess
Comment options

@agoose77
Comment options

Answer selected by ivoschulthess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants