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

Class TMPReader

tests/cdslib/data/test_chunked_memmap.py:182–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180
181 # define a SampleReader
182 class TMPReader:
183 def __init__(self, samples_list):
184 self.samples_list = samples_list
185
186
187 def __len__(self):
188 return len(self.samples_list)
189
190
191 def __getitem__(self, i):
192 return self.samples_list[i]
193
194 samples = TMPReader(samples_list)
195

Callers 1

Calls

no outgoing calls

Tested by 1