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

Method check_dataset

qlib/tests/data.py:111–117  ·  view source on GitHub ↗
(self, file_name: str)

Source from the content-addressed store, hash-verified

109 target_path.unlink()
110
111 def check_dataset(self, file_name: str):
112 url = self.merge_remote_url(file_name)
113 resp = requests.get(url, stream=True, timeout=60)
114 status = True
115 if resp.status_code == 404:
116 status = False
117 return status
118
119 @staticmethod
120 def _unzip(file_path: [Path, str], target_dir: [Path, str], delete_old: bool = True):

Callers 1

qlib_dataMethod · 0.95

Calls 2

merge_remote_urlMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected