wf_psf.utils.read_config module
Read Config.
A module which defines methods to read configuration files.
- Author:
Jennifer Pollack <jennifer.pollack@cea.fr>
- class wf_psf.utils.read_config.RecursiveNamespace(**kwargs)[source]
Bases:
SimpleNamespace
RecursiveNamespace.
A child class of the type SimpleNamespace to create nested namespaces (objects).
- Parameters:
**kwargs – Extra keyword arguments used to build a nested namespace.
Methods
map_entry
(entry)Map Entry.
- wf_psf.utils.read_config.read_conf(conf_file)[source]
Read Conf.
A function to read a yaml configuration file, recursively.
- Parameters:
conf_file (str) – Name of configuration file
- Returns:
Recursive Namespace object
- Return type: