MCPcopy Create free account
hub / github.com/apple/ml-pointersect / __getitem__

Method __getitem__

tests/cdslib/data/test_chunked_memmap.py:25–26  ·  view source on GitHub ↗
(self, idx)

Source from the content-addressed store, hash-verified

23 return len(self.mmap)
24
25 def __getitem__(self, idx):
26 return np.array(self.mmap[idx])
27
28
29class MyTestCase(unittest.TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected