MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / __reduce__

Method __reduce__

python/graphvite/util.py:111–113  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

109 return super(SharedNDArray, cls).__new__(cls, *args, **kwargs)
110
111 def __reduce__(self):
112 order = "C" if self.flags["C_CONTIGUOUS"] else "F"
113 return self.__class__.from_memmap, (self.filename, self.dtype, self.mode, self.offset, self.shape, order)
114
115 def __array_wrap__(self, arr, context=None):
116 arr = super(np.memmap, self).__array_wrap__(arr, context)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected