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

Add deepcopy to config

This commit is contained in:
Jactus
2021-01-06 14:01:46 +08:00
committed by you-n-g
parent ea96c9e22d
commit 74e08c9e37

View File

@@ -20,7 +20,7 @@ import multiprocessing
class Config:
def __init__(self, default_conf):
self.__dict__["_default_config"] = default_conf # avoiding conflictions with __getattr__
self.__dict__["_default_config"] = copy.deepcopy(default_conf) # avoiding conflictions with __getattr__
self.reset()
def __getitem__(self, key):