There's no need for the `np.where`, one can just do: `new_mask_bool = new_mask > 0` ... so you might as well just inline that expression in the MaskedArray constructor.