Repository navigation
Reducing requests using https protocol #1452
Replies: 3 comments 8 replies
|
Hi @zlmarshall You can add So something like this |
|
Hi all, Ok, I think I've made a little progress in understanding this issue. This is only my understanding from tinkering, adding some printing, and reading some code, so it's entirely possible that I got things wrong — please let me know if that's the case. Here's a simple reproducer for the issue:
Then later on:
My sense is that the solution is to make sure the first chunk gotten in I'm going to keep tinkering a bit, but I wanted to post this diagnosis in case somebody knows how to solve the problem right away. Thanks, |
|
One more update, with the It does look like my guess was correct, that Best, |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
When opening ROOT files through the https protocol, as in
https://github.com/atlas-outreach-data-tools/notebooks-collection-opendata/blob/master/13-TeV-examples/uproot_python/HZZAnalysisNew.ipynb
We get a:
Because uproot seems to generate https requests for every (?) interaction with a
TTree, there's too much traffic on the http endpoint, and we get blocked. We can work around that by downloading the files and accessing them locally:That's not terribly nice, if the aim here is streaming. Is there a way to be more greedy with the https requests from uproot, to have fewer requests and more data per request?
Thanks,
Zach
All reactions