Open jrueb opened 4 years ago
I'm trying to apply a mask onto my JaggedArray. Unfortunately, in the corner case where the JaggedArray is empty, I can an IndexError.
JaggedArray
IndexError
a = awkward.JaggedArray.fromoffsets([1, 1], [1, 1]) mask = a > 10 a[mask]
In case of arrays created by fromcounts, this seems to work.
fromcounts
Awkward 1 is so close to being ready that my recommendation is to use the work-around. (Leave this issue open so that anyone else who runs into this can find it.)
Thanks for reporting it, though!
I'm trying to apply a mask onto my
JaggedArray
. Unfortunately, in the corner case where theJaggedArray
is empty, I can anIndexError
.In case of arrays created by
fromcounts
, this seems to work.