Skip to content

module myna.core.utils.nested_dict_tools

Tools for working with nested dictionaries


function nested_set

nested_set(dict, keys, value)

Modifies a nested dictionary value given a list of keys to the nested location


function nested_get

nested_get(dict, keys, default_value=None)

Gets the value of a nested dictionary given a list of keys to the nested location


function get_synonymous_key

get_synonymous_key(dict_obj, synonym_list)

Returns the object at the first matching key from a dictionary-like object given a list of synonymous keys

Args:

  • dict_obj: dictionary-like object, e.g., dict or h5py.File()
  • synonym_list: list of synonymous keys to check

Returns:

  • entry_name: first matching key

This file was automatically generated via lazydocs.