NumPy

numpy.ma.MaskType.setfield

method

MaskType.setfield()

Scalar method identical to the corresponding array attribute.

Please see ndarray.setfield.