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

Function _mrreconstruct

numpy/ma/mrecords.py:487–494  ·  view source on GitHub ↗

Build a new MaskedArray from the information stored in a pickle.

(subtype, baseclass, baseshape, basetype,)

Source from the content-addressed store, hash-verified

485
486
487def _mrreconstruct(subtype, baseclass, baseshape, basetype,):
488 """
489 Build a new MaskedArray from the information stored in a pickle.
490
491 """
492 _data = ndarray.__new__(baseclass, baseshape, basetype).view(subtype)
493 _mask = ndarray.__new__(ndarray, baseshape, 'b1')
494 return subtype.__new__(subtype, _data, mask=_mask, dtype=basetype,)
495
496mrecarray = MaskedRecords
497

Callers

nothing calls this directly

Calls 2

viewMethod · 0.45
__new__Method · 0.45

Tested by

no test coverage detected