-
Notifications
You must be signed in to change notification settings - Fork 67
uproot.lazyarray doesn't crash/warn if given multiple branches #306
Comments
On the one hand, the function you want is named There is an issue with |
I just stumbled over the same issue. The difference |
Possible improvements in order of my personal preference:
|
The original The idea behind the I guess this means I'm convincing myself of your option 2: when requesting a |
Makes sense! Option 2 is also fine. :) |
...and btw uproot is awesome. |
… TTree.array, TTree.lazyarray, or uproot.lazyarray (all the non-pluralized methods), then a useful error message is raised.
Fixes issue #306: better error message.
I have a piece of code that extracts branches to use based on the selection strings passed in, doing something like:
I find that when I do this
(as
formulate.from_x
gives you aset
), I get the strangest cryptic error:yet all the files have that branch... Looking at the API, it only accepts one branch. I was somewhat surprised that it just accepted arbitrary iterables.
The text was updated successfully, but these errors were encountered: