hierarchical_update

lsst.ts.salobj.hierarchical_update(main: dict[str, Any], override: dict[str, Any], main_name: str, override_name: str, prefix: str = '') None

Hierarchically update one dict with values from another.

If a value in override is a dict, then work item by item, recursively.

Parameters:
maindict

Dict to update.

overridedict

Dict of update values.

main_namestr

Name of main dict; used for error messages.

override_namestr

Name of override dict; used for error messages.

prefixstr

The key prefix for error messages. Should be blank for the first call and be “[key][subkey]…[sub…subkey]” for each successive key.