-
Notifications
You must be signed in to change notification settings - Fork 54
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
Question about views #62
Comments
Good question! Views get combined when you ask for a specific point in the "key space." That is, when you ask for Would it work to use the individual values directly—i.e., to use |
Thank you for the quick response! Unfortunately getting each setting individually is not going to work for what I am trying to achieve. I want to pass the whole set of options to |
Nope, no problems at all! That ( |
Thank you! |
I am not sure I fully understand the concept of views and combining them. Here is my use case:
I am creating a
config
using this code and yaml file:Here is an example of the config in the yaml:
Then augmenting it with the arguments:
the arguments I am passing are
When I then look up the configuration using the below line it returns only the entries from the second view created by the
config.set_args
:How could I get all the values returned by merging both views?
When I examine the config in the debugger it has two views, and
config.flatten()
returns the properly merged configuration.Any help is very much appreciated.
The text was updated successfully, but these errors were encountered: