mergeConfigWithFile#
- lsst.ts.wep.utils.mergeConfigWithFile(configFile, **kwargs)#
Merge the passed keyword arguments with the values stored in the file.
If configFile is not provided, the keyword arguments are returned verbatim.
- Parameters:
configFile (str, optional) – Path to the config yaml file. Can be an absolute or relative path, but if the path starts with “policy:”, the path will be understood to be relative to the ts_wep policy directory. This file can only contain keys that match keywords in kwargs, but it need not contain all the keywords.
kwargs (Any) – Keyword arguments with which to replace the values from the file. Note that None values are always ignored in favor of the value in configFile.
- Returns:
Config dictionary
- Return type:
- Raises:
KeyError – If configFile contains keywords not present in kwargs