mergeConfigWithFile¶
- lsst.ts.wep.utils.mergeConfigWithFile(configFile: str | None, **kwargs: Any) dict¶
- Merge the passed keyword arguments with the values stored in the file. - If configFile is not provided, the keyword arguments are returned verbatim. - Parameters¶- configFilestr, 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. 
- kwargsAny
- 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¶- dict
- Config dictionary 
 - Raises¶- KeyError
- If configFile contains keywords not present in kwargs