Skip to content
Discussion options

You must be logged in to vote

Thanks for (privately) sending the file! As you noticed when you sent it to me, empty TTrees fail with

ValueError: cannot produce Awkward Arrays for interpretation
AsObjects(AsPointer(Model_SubBranch)) because

     arbitrary pointer

instead, try library="np" instead of library="ak" or globally set
uproot.default_library

and that is the fundamental error. When executed in library="np" (arbitrary Python objects in NumPy arrays), it goes through read_object_any, which deserializes a pointer type in C++, which could be a polymorphic class (which could be a union type in Awkward Array if we knew the set of possible types, which we don't) and could have reference cycles (Awkward Arrays are s…

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
11 replies
@renyhp
Comment options

@jpivarski
Comment options

@renyhp
Comment options

@jpivarski
Comment options

@renyhp
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by renyhp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants