pymhf.utils.config module#

pymhf.utils.config.canonicalize_setting(value: str | None, plugin_name: str | None, module_dir: str, exe_dir: str | None = None, suffix: str | None = None) str | None#

Convert the “magic” names into real values.

Possible keys: - EXE_DIR - USER_DIR / “~” - CURR_DIR / “.”

pymhf.utils.config.canonicalize_settings_inline(config: pymhfConfig, plugin_name: str | None, module_dir: str, exe_dir: str | None = None, suffix: str | None = None, filter: list[str] | None = None)#

Canonicalize all the settings in a config file. This will mutate the original config object.

To only modify values containing a particular value, specify this in the filter argument.

pymhf.utils.config.merge_configs(src: pymhfConfig, dst: pymhfConfig)#

Merge the source config into the dest config. Overwriting any values.