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

Method get_uid

cdslib/core/data/index_reader.py:102–106  ·  view source on GitHub ↗

Return the uid of the i-th line in the index file. If with_uid was set to False, returns None.

(self, i: int)

Source from the content-addressed store, hash-verified

100 return out
101
102 def get_uid(self, i: int):
103 """Return the uid of the i-th line in the index file.
104 If with_uid was set to False, returns None."""
105
106 return self.uids[i]
107
108 def get_invalid_idxs(self):
109 """Return indexes of which the files do not exist."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected