defines what should be a valid index into b, however
>>> b[idx]
...
IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
A workaround (implementation?) is
>>> idx.copy(content=b[~idx.boolmask()][idx.content])
<IndexedMaskedArray [[2] None [-1] [] [-4]] at 0x000117dcac90>
Related, I wish that af.boolmask() was instead af.mask an af.mask goes private, as it depends on the mask implementation. Similar to how af.counts is a universal property.
Also, a shorthand for af[~af.boolmask()].content would be nice.
defines two arrays, one a flat masked array, and one a jagged array.
ufuncs depend on order of operation--the jagged array doesn't let masked array pass through.
defines what should be a valid index into
b
, howeverA workaround (implementation?) is
Related, I wish that
af.boolmask()
was insteadaf.mask
anaf.mask
goes private, as it depends on the mask implementation. Similar to howaf.counts
is a universal property. Also, a shorthand foraf[~af.boolmask()].content
would be nice.