choose#
- astropy.utils.masked.function_helpers.choose(a, choices, out=None, mode='raise')[source]#
Construct an array from an index array and a set of arrays to choose from.
Like
numpy.choose
. Masked indices ina
will lead to masked output values and underlying data values are ignored if out of bounds (formode='raise'
). Any values masked inchoices
will be propagated if chosen.