MCPcopy Index your code
hub / github.com/numpy/numpy / __getitem__

Method __getitem__

numpy/_core/memmap.py:358–362  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

356 return arr.view(np.ndarray)
357
358 def __getitem__(self, index):
359 res = super().__getitem__(index)
360 if type(res) is memmap and res._mmap is None:
361 return res.view(type=ndarray)
362 return res

Callers 1

Calls 1

viewMethod · 0.45

Tested by

no test coverage detected