Handles the processing of nengo-bones configuration settings.
nengo_bones.config.
check_list
(cfg, key)[source]¶Verify that config value is a list.
This is designed to catch the common error of specifying
option:
value
instead of
option:
- value
Configuration options being checked.
Name of configuration value to be checked.
If key
is in cfg
and its value is not a list.
nengo_bones.config.
find_config
()[source]¶Finds the default nengo-bones config file.
Path to the default config file.
nengo_bones.config.
fill_defaults
(config)[source]¶Fills in default values in a loaded config (in-place).
Dictionary containing configuration values.
nengo_bones.config.
validate_config
(config)[source]¶Validates a populated config dict.
Dictionary containing configuration values.
nengo_bones.config.
validate_ci_config
(ci_config)[source]¶Validates an entry in the ci_scripts list of a config dict.
Dictionary containing ci_scripts configuration values.
nengo_bones.config.
load_config
(conf_file=None)[source]¶Loads config values from a file and applies defaults/validation.
Filepath for config file (if None, will load the default returned by
find_config
).
Dictionary containing configuration values.