mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-14 00:06:58 +08:00
Add deepcopy to config
This commit is contained in:
@@ -20,7 +20,7 @@ import multiprocessing
|
|||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
def __init__(self, default_conf):
|
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()
|
self.reset()
|
||||||
|
|
||||||
def __getitem__(self, key):
|
def __getitem__(self, key):
|
||||||
|
|||||||
Reference in New Issue
Block a user