Closed vargasa closed 4 years ago
This is a bug: it looks like _LazyTree
has correctly implemented persistence and _LazyFiles
doesn't. I'll take a look.
In the latest uproot, _LazyTree
fails, and _LazyFiles
fails differently! So, first off, update to the latest uproot because something changed. I'll dig into the error, though.
Actually, I don't see anything in here that would enable persistence of lazily loaded trees or sets of trees from uproot. As far as I can see, it just hasn't been implemented, and there are a few subtleties that we'd have to solve to do it right.
This also bothers me because I remember saving lazy data from uproot. I don't remember when, but I see no evidence that it has been implemented (Mandela Effect?). For the moment, however, I think you should consider this not an existing feature.
The following code works as expected:
However, if I use
uproot.lazyarrays
directly:The second piece yields to:
which is expected. However when calling
awkward.save
I get:The second piece is intended to be used for chaining some files instead of using only one as in the code shown. Is the virtualness expected to work in this case?