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

Method _uri

qlib/data/cache.py:501–504  ·  view source on GitHub ↗
(self, instrument, field, start_time, end_time, freq)

Source from the content-addressed store, hash-verified

499 return super(DiskExpressionCache, self).get_cache_dir(C.features_cache_dir_name, freq)
500
501 def _uri(self, instrument, field, start_time, end_time, freq):
502 field = remove_fields_space(field)
503 instrument = str(instrument).lower()
504 return hash_args(instrument, field, freq)
505
506 def _expression(self, instrument, field, start_time=None, end_time=None, freq="day"):
507 _cache_uri = self._uri(instrument=instrument, field=field, start_time=None, end_time=None, freq=freq)

Callers 1

_expressionMethod · 0.95

Calls 2

remove_fields_spaceFunction · 0.85
hash_argsFunction · 0.85

Tested by

no test coverage detected