select#

astropy.utils.masked.function_helpers.select(condlist, choicelist, default=0)[source]#

Return an array drawn from elements in choicelist, depending on conditions.

Like numpy.select, with masks in choicelist are propagated. Any masks in condlist are ignored.