-
Notifications
You must be signed in to change notification settings - Fork 116
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
Behavior of OmegaConf.update changed in 2.0.2rc1 #363
Comments
Thanks for letting me know this bit you. This is an intended change. the behavior of updating dictionaries changed from replace to merge. Do you have a use case where you prefer assignment over merging? |
Ah ok, thank you for your reply! This could be a breaking change for some people (like me :D ), so maybe a major release would be good. (Specifically, our configuration has { "remote_datasets": ..., "local_datasets": ... }. A script downloads the remote_datasets and adds them to the "local_datasets". The "remote_datasets" are deleted then.) |
Yeah, I agree. I do think the correct interpretation is to merge the dict and not to update it though, but the default behavior should not change without a warning. |
see #367 |
Hi,
the behavior of update seems to have changed. When replacing a dictionary, values aren't deleted anymore.
Minimal example in 2.0.1: (property "c" is removed)
The same example in 2.0.2rc1: (property "c" is not removed)
Is this a bug or an intended change?
The text was updated successfully, but these errors were encountered: