-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] Refine User Scripts #2849
[Enhancement] Refine User Scripts #2849
Conversation
…nto refine_user_scripts_2
tmp_dic = dic | ||
for subkey in key_list[:-1]: | ||
tmp_dic.setdefault(subkey, dict()) | ||
assert subkey in tmp_dic, "Can not update {}, because it is not in config.".format( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不允许创建新的key了吗?会不会存在默认参数原先不存在于yaml而需要传入的情况呢?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
防止设置错误吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我给这个分支提了个 PR,实现了一些我的想法,辛苦看看:
juncaipeng#1
[Refactor] Decouple Classes in `config.py`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
PR types
Others
PR changes
Others
Description