check_key_exists#

skysim.settings.check_key_exists(dictionary, full_key)[source]#

Check if a key exists within a nested dictionary.

Parameters:
dictionaryTOMLConfig

The top-level dictionary to check.

full_keystr

Potentially nested key.

Returns:
bool

Whether or not the key exists.