putmask#

astropy.utils.masked.function_helpers.putmask(a, mask, values)[source]#

Changes elements of an array based on conditional and input values.

Like numpy.putmask, but for masked array a and possibly masked values. Masked mask is not supported.