Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

broken __repr__ on ObjectArrays from ChunkedArrays and inconsistent behavior of choose() #67

Open
lukasheinrich opened this issue Aug 12, 2019 · 1 comment

Comments

@lukasheinrich
Copy link

i'm not sure whether this is expected or not, but when reading lazily from a tree, and thus operating with ChunkedArrays I can't seem to create ObjectArrays

rather than the above, it seems like the __repr_ method is broken for object arrays created from chunked arrays

screenshot

Also, I noticed that .choose(n) seems to behave differently depending on whether the ObjectArray was created from ChunkedArrays vs JaggedArrays. Is this expected?

@lukasheinrich lukasheinrich reopened this Aug 12, 2019
@lukasheinrich lukasheinrich changed the title question: cannot create object array from ChunkedArrays broken __repr__ on ObjectArrays from ChunkedArrays and inconsistent behavior of choose() Aug 12, 2019
@jpivarski
Copy link
Member

It's likely that TLorentzVectorArray.from_ptetaphim is naive about array structures other than JaggedArray. That's my first guess. I don't think it's __repr__ that's failing here—I think it might be building the wrong structure. You can look at it with .layout() to see what it's actually built.

@jpivarski jpivarski transferred this issue from scikit-hep/awkward-0.x Sep 27, 2019
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