dcase_util.containers.DictContainer.set_path

DictContainer.set_path(path, new_value, data=None)[source]

Set value in nested dict with dotted path

Parameters
pathstr or list of str

String in form of “field1.field2.field3”

new_value

new value to be placed

datadict, optional

Dict for which path search is done, if None given self is used. Used for recursive path search. Default value None

Returns
None