MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / check_index

Method check_index

utils/indexed_datasets.py:17–19  ·  view source on GitHub ↗
(self, i)

Source from the content-addressed store, hash-verified

15 self.num_cache = num_cache
16
17 def check_index(self, i):
18 if i < 0 or i >= len(self.data_offsets) - 1:
19 raise IndexError('index out of range')
20
21 def __del__(self):
22 if self.data_file:

Callers 1

__getitem__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected