-
Notifications
You must be signed in to change notification settings - Fork 115
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
Allow for automatic .
separated key conversion to nested dictionary
#1188
Comments
related: #1189 |
Currently it is allowed (but not recommended) to use dots in config keys. This makes OmegaConf compatible with a wider range of use cases, and I don't foresee it changing in the future. That being said, it may be useful to allow creating a config from a dict whose keys contains dot and automatically turning it into a nested config. This couldn't just use the syntax from #1189 as it would break backward compatibility, but this could be either a new parameter to In the meantime, my suggestion is that you implement this function yourself -- you could then share it here so that someone else looking for the same feature can re-use it directly :) |
Thanks for responding @odelalleau ! Would you be open to have this functionality embedded in the create method? |
Potentially yes, but only if some additional flag is needed to enable this behavior, since we shouldn't break the existing default behavior which is working as intended. (EDIT: as a result I may lean more towards a different dedicated function, like |
|
Describe the bug
There should be a way to specify
.
separated namespaces in my config and OmegaConf should ideally split all these keys into nested dictionaries.To Reproduce
See in the above section
Expected behavior
For the above code I expect the following output:
Additional context
The text was updated successfully, but these errors were encountered: