1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-03 02:50:58 +08:00

fix bug of region

This commit is contained in:
Young
2020-09-29 11:45:32 +00:00
committed by you-n-g
parent 5c2f218cfb
commit e5c7d634eb

View File

@@ -44,7 +44,7 @@ def init(default_conf="client", **kwargs):
if k not in C:
LOG.warning("Unrecognized config %s" % k)
C.set_region(kwargs.get('region', REG_CN))
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):