From e5c7d634ebd0ac5f4891af2cff09bd6a1e560a68 Mon Sep 17 00:00:00 2001 From: Young Date: Tue, 29 Sep 2020 11:45:32 +0000 Subject: [PATCH] fix bug of region --- qlib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qlib/__init__.py b/qlib/__init__.py index d865ff3f2..359520492 100644 --- a/qlib/__init__.py +++ b/qlib/__init__.py @@ -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):