1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-10 22:36:55 +08:00

remove uri parameter from storage && modify file_storage

This commit is contained in:
zhupr
2021-05-26 01:01:36 +08:00
parent 602f78b568
commit 5da33562dd
7 changed files with 373 additions and 201 deletions

View File

@@ -665,7 +665,10 @@ def exists_qlib_data(qlib_dir):
return False
# check calendar bin
for _calendar in calendars_dir.iterdir():
if not list(features_dir.rglob(f"*.{_calendar.name.split('.')[0]}.bin")):
if ("_future" not in _calendar.name) and (
not list(features_dir.rglob(f"*.{_calendar.name.split('.')[0]}.bin"))
):
return False
# check instruments