sigmf.utils.dict_merge

sigmf.utils.dict_merge(a_dict: dict, b_dict: dict) dict

Recursively merge b_dict into a_dict. b_dict[key] will overwrite a_dict[key] if it exists.

Example

>>> a, b = {0:0, 1:2}, {1:3, 2:4}
>>> dict_merge(a, b)
{0: 0, 1: 3, 2: 4}