1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-12 15:26:54 +08:00

modify the default value of exists_skip in the GetData.qlib_data parameter to False

This commit is contained in:
zhupr
2021-05-28 14:57:06 +08:00
parent 98eacf8f88
commit ef11a9d95c
10 changed files with 17 additions and 10 deletions

View File

@@ -113,7 +113,7 @@ class GetData:
interval="1d",
region="cn",
delete_old=True,
exists_skip=True,
exists_skip=False,
):
"""download cn qlib data from remote
@@ -132,7 +132,7 @@ class GetData:
delete_old: bool
delete an existing directory, by default True
exists_skip: bool
exists skip, by default True
exists skip, by default False
Examples
---------
@@ -145,6 +145,10 @@ class GetData:
"""
if exists_skip and exists_qlib_data(target_dir):
logger.warning(
f"Data already exists: {target_dir}, the data download will be skipped\n"
f"\tIf downloading is required: `exists_skip=False` or `change target_dir`"
)
return
qlib_version = ".".join(re.findall(r"(\d+)\.+", qlib.__version__))