currentscape.config_parser

Config-related functions.

Functions

check_config(c)

Output a warning if something is wrong with the config.

replace_defaults(config, new_config)

Recursive fct.

set_default_config(c)

Set non-specified values in config to default.

currentscape.config_parser.check_config(c)[source]

Output a warning if something is wrong with the config.

Parameters:

c (dict) – config

currentscape.config_parser.replace_defaults(config, new_config)[source]

Recursive fct. Replace defaults value with user input.

Parameters:
  • config (dict) – default config

  • new_config (dict) – dict containing config items to be updated

currentscape.config_parser.set_default_config(c)[source]

Set non-specified values in config to default.

Parameters:

c (str or dict) – config dict or path to json config. values from c are added or replace those from default config.