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_dictionaryTOMLConfig

TOML configuration.

toml_keystr

Nested key to access the TOML dictionary with.

default_configTOMLConfig

Default configuration dictionary.

default_keystr | None, default None

Alternative key to access the default dictionary with, if different from toml_key.

Returns:
ConfigValue

Value as located in one of the dictionaries.