MCPcopy Create free account
hub / github.com/numpy/numpy / _mareconstruct

Function _mareconstruct

numpy/ma/core.py:6335–6342  ·  view source on GitHub ↗

Internal function that builds a new MaskedArray from the information stored in a pickle.

(subtype, baseclass, baseshape, basetype,)

Source from the content-addressed store, hash-verified

6333
6334
6335def _mareconstruct(subtype, baseclass, baseshape, basetype,):
6336 """Internal function that builds a new MaskedArray from the
6337 information stored in a pickle.
6338
6339 """
6340 _data = ndarray.__new__(baseclass, baseshape, basetype)
6341 _mask = ndarray.__new__(ndarray, baseshape, make_mask_descr(basetype))
6342 return subtype.__new__(subtype, _data, mask=_mask, dtype=basetype,)
6343
6344
6345class mvoid(MaskedArray):

Callers

nothing calls this directly

Calls 2

make_mask_descrFunction · 0.85
__new__Method · 0.45

Tested by

no test coverage detected