pyhrf.configuration module¶
Loads and allows configuration of PyHRF.
-
exception
pyhrf.configuration.ConfigurationError¶ Bases:
exceptions.ExceptionException class for configuration parsing errors.
-
pyhrf.configuration.cfg_error_report(cfg, refcfg)¶
-
pyhrf.configuration.load_configuration(filename, refcfg, mode='file_only')¶ Load configuration file from ‘filename’ and check it against ‘refcfg’. If mode is ‘file_only’ then only configuration in filename is returned. If mode is ‘update’ then the loaded configuration is updated with ‘refcfg’ to load defaults for unprovided parameters.
-
pyhrf.configuration.write_configuration(cfg_dict, filename, section_order=None)¶