This is a pre-release version (latest).Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy latest / numpy / ma / core / MaskedArray / __setstate__

function

numpy.ma.core:MaskedArray.__setstate__

source: build-install/usr/lib/python3.14/site-packages/numpy/ma/core.py:6476

Signature

def __setstate__(self, state)

Summary

Restore the internal state of the masked array, for pickling purposes. state is typically the output of the __getstate__ output, and is a 5-tuple:

Extended Summary

  • class name

  • a tuple giving the shape of the data

  • a typecode for the data

  • a binary string for the data

  • a binary string for the mask.

Aliases

  • numpy.ma.MaskedArray.__setstate__