get_config_option#
- skysim.settings.get_config_option(toml_dictionary, toml_key, default_config, default_key=None)[source]#
Access a config value from the TOML config provided, and if not present, search the provded default config.
- Parameters:
- toml_dictionary
TOMLConfig TOML configuration.
- toml_key
str Nested key to access the TOML dictionary with.
- default_config
TOMLConfig Default configuration dictionary.
- default_key
str|None, defaultNone Alternative key to access the default dictionary with, if different from
toml_key.
- toml_dictionary
- Returns:
ConfigValueValue as located in one of the dictionaries.