MCPcopy Create free account
hub / github.com/InternRobotics/G2VLM / read

Method read

eval_code/recons/models/moge/utils/webfile.py:50–62  ·  view source on GitHub ↗
(self, n: Optional[int] = None)

Source from the content-addressed store, hash-verified

48 self._offset = max(0, min(new_offset, self.size))
49
50 def read(self, n: Optional[int] = None) -> bytes:
51 if n is None or n < 0:
52 n = self.available()
53 else:
54 n = min(n, self.available())
55
56 if n == 0:
57 return b''
58
59 data = self._fetch_data(self._offset, n)
60 self._offset += len(data)
61
62 return data
63
64 def close(self) -> None:
65 pass

Callers 15

load_images_as_tensorFunction · 0.80
extract_metricsFunction · 0.80
__init__Method · 0.80
get_dataMethod · 0.80
download_re10k.pyFile · 0.80
process_posesFunction · 0.80
read_file_listFunction · 0.80
load_seq_camerasFunction · 0.80
prepare_re10k.pyFile · 0.80
read_imageFunction · 0.80
read_depthFunction · 0.80
read_segmentationFunction · 0.80

Calls 2

availableMethod · 0.95
_fetch_dataMethod · 0.95

Tested by

no test coverage detected