MCPcopy
hub / github.com/microsoft/qlib / check_cache_exists

Method check_cache_exists

qlib/data/cache.py:305–310  ·  view source on GitHub ↗
(cache_path: Union[str, Path], suffix_list: Iterable = (".index", ".meta"))

Source from the content-addressed store, hash-verified

303
304 @staticmethod
305 def check_cache_exists(cache_path: Union[str, Path], suffix_list: Iterable = (".index", ".meta")) -> bool:
306 cache_path = Path(cache_path)
307 for p in [cache_path] + [cache_path.with_suffix(_s) for _s in suffix_list]:
308 if not p.exists():
309 return False
310 return True
311
312 @staticmethod
313 def clear_cache(cache_path: Union[str, Path]):

Callers 5

_expressionMethod · 0.80
updateMethod · 0.80
_datasetMethod · 0.80
_dataset_uriMethod · 0.80
updateMethod · 0.80

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected