iris-hep / func_adl_uproot

Uproot-based backend for FuncADL
MIT License
0 stars 0 forks source link

`Sum` in `Select` of `Choose` doesn't work #87

Closed masonproffitt closed 2 years ago

masonproffitt commented 2 years ago

For example:

Select(EventDataset('tests/vectors_tree_file.root', 'tree'),
    lambda row: row.int_vector_branch.Choose(2).Select(lambda pair: pair.Sum()))

results in:

ValueError: axis=2 exceeds the depth of the nested list structure (which is 2)