1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-01 18:11:18 +08:00

change the init order

This commit is contained in:
Young
2020-10-10 09:27:18 +00:00
parent 59047df699
commit 54d5e1fbdc

View File

@@ -38,13 +38,13 @@ def init(default_conf="client", **kwargs):
LOG.info(f"default_conf: {default_conf}.")
C.set_mode(default_conf)
C.set_region(kwargs.get('region', C['region'] if 'region' in C else REG_CN ))
for k, v in kwargs.items():
C[k] = v
if k not in C:
LOG.warning("Unrecognized config %s" % k)
C.set_region(kwargs.get("region", C["region"] if "region" in C else REG_CN))
C.resolve_path()
if not (C["expression_cache"] is None and C["dataset_cache"] is None):