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

Method __getitem__

numpy/core/memmap.py:334–338  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

332 return arr.view(np.ndarray)
333
334 def __getitem__(self, index):
335 res = super().__getitem__(index)
336 if type(res) is memmap and res._mmap is None:
337 return res.view(type=ndarray)
338 return res

Callers 1

Calls 1

viewMethod · 0.45

Tested by

no test coverage detected