pyrad.io.read_config#

pyrad.io.read_config(fname, cfg=None, defaults=None)[source]#

Read a pyrad config file.

Parameters:
  • fname (str) – Name of the configuration file to read.

  • cfg (dict of dicts, optional) – dictionary of dictionaries containing configuration parameters where the new parameters will be placed

  • defaults (dict of dicts, optional) – dictionary of dictionaries containing default values. If a key is contained in the defaults dict but not in the configuration file, the value from the defaults dict will be assigned

Returns:

cfg (dict of dicts) – dictionary of dictionaries containing the configuration parameters