-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ak.unzip
touches all contents whilst typetracing
#2372
Comments
From @lgray:
and
@lgray, if you mean the appearance of But if you mean the appearance of |
Yes, I mean this exactly. |
I'll also mention that the cross refs can be a pain since they're doubly nested indices, so their on disk / in-memory representations can be pretty large (since they're N^2 in the size of the collection, for two large collections). It would be best to avoid loading them spuriously. |
ak.unzip
touches all contents
ak.unzip
touches all contentsak.unzip
touches all contents whilst typetracing
The cause of this bug is I think this is reasonable for |
Trimming content (which some_array[from_here:to_there] doesn't count as a touch. I hope you're right that it's something that can be fixed by fixing the visitor. |
@jpivarski actually yes, it doesn't. I was looking at this branch (not related to the layout in this issue, but I was already on the tab), which does (is this a bug?) awkward/src/awkward/contents/listarray.py Line 743 in 01417bc
I have to wrap my hand around how we want
disagrees with that. |
Version of Awkward Array
HEAD, after #2370
Description and code to reproduce
Even after applying #2370 (which fixes a similar bug), the following code:
produces the following output:
It's a little mysterious (but not a major pain point) that the "crossref indexes" are touched by the
ak.cartesian
step, which ought to treat the muons and jets as opaque objects. A little mysterious, and maybe related.But the real problem is represented by the "jet thing" in the final output. The "jet thing" should never have been accessed by any of these operations:
delta_r2
,ak.argmin
, theb[mmin]
slice, orak.firsts
. It's also a stand-in for dozens of large fields, so it's a real pain point that needs to be addressed.The text was updated successfully, but these errors were encountered: