-
|
I read some data from uproot and the resulting array is represented as a regular array
Values are if I apply a filter
which is not what I expect. I solved with but this seems awkward |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
@wiso - Thanks for reporting it! Conceptually, this is something Awkward could (and arguably should) handle at the slicing layer: When applying a jagged mask to a That would make So yes — you’re absolutely right it is awkward:
|
Beta Was this translation helpful? Give feedback.
@wiso - Thanks for reporting it! Conceptually, this is something Awkward could (and arguably should) handle at the slicing layer:
When applying a jagged mask to a
RegularArray, the result could be “promoted” to a list-like structure instead of flattened.That would make
values[values != 0]always behave consistently.So yes — you’re absolutely right it is awkward:
RegularArray.