MCPcopy Index your code
hub / github.com/microsoft/qlib / get_index

Method get_index

qlib/data/cache.py:806–810  ·  view source on GitHub ↗
(self, start_time=None, end_time=None)

Source from the content-addressed store, hash-verified

804 self.logger = get_module_logger(self.__class__.__name__)
805
806 def get_index(self, start_time=None, end_time=None):
807 # TODO: fast read index from the disk.
808 if self._data is None:
809 self.sync_from_disk()
810 return self._data.loc[start_time:end_time].copy()
811
812 def sync_to_disk(self):
813 if self._data is None:

Callers 2

read_data_from_cacheMethod · 0.95
updateMethod · 0.95

Calls 2

sync_from_diskMethod · 0.95
copyMethod · 0.80

Tested by

no test coverage detected