MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / __iter__

Method __iter__

datasets/sampler.py:41–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

39 self.start_index: int = 0
40
41 def __iter__(self) -> Iterator:
42 iterator = super().__iter__()
43 indices = list(iterator)
44 indices = indices[self.start_index:]
45 return iter(indices)
46
47 def __len__(self) -> int:
48 return self.num_samples - self.start_index

Callers

nothing calls this directly

Calls 1

__iter__Method · 0.45

Tested by

no test coverage detected