Replies: 5 comments 3 replies
-
That's right: I just checked and this is indeed unimplemented. It probably got pushed to low priority because it seemed like this feature was hardly ever used in Uproot 3. The way I gauge that is by user comments, questions, and requests for bug-fixes, such as this one. In fact, it's telling that this has been the default Uproot version since last December and this is the first time the point has been raised that it's completely missing. So, how important is this in your work? Is it memory or speed prohibitive to let Uproot allocate an array, fill it, copy that into the in-place place where you want it, and then let that temporary array go out of scope? If it's not actually important, then I might just remove the "reminder" stub for AsDtypeInPlace (i.e. remove the promise that it would ever be implemented). |
Beta Was this translation helpful? Give feedback.
-
Thanks for your fast answer ! So in this particular case, yes being able to read directly into a given array is important. I don't claim I have an optimal solution, but it is based on the idea that when we have to split data into chunks, the bigger the chunks, the better because we can minimize the repetitions of read and preprocessing operations. Cheers, P-A |
Beta Was this translation helpful? Give feedback.
-
Hello, Thanks for the detailed suggestion ! I'm just a bit worried that repeating the instruction I'm not sure how difficult for me it would be to implement |
Beta Was this translation helpful? Give feedback.
-
Hi, With a bit of delay, I could give a try and had something working. |
Beta Was this translation helpful? Give feedback.
-
Thanks for helping with this PR and accepting it ! |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have a workflow where I use uproot3 to read in data from root files directly into existing big in-memory arrays.
I was using interpretation like in :
and as expected all the
abigarray
are filled in-place.Is there a way to do that with uproot4 ? I didn't find it in the doc.
I've seen a
AsDtypeInPlace
class in the interpretation module, but it's currently not implemented so I'm affraid this is not yet possible.Did I miss something ?
Cheers,
P-A
Beta Was this translation helpful? Give feedback.
All reactions