get_recursive¶
full name: tenpy.tools.misc.get_recursive
parent module:
tenpy.tools.misc
type: function
-
tenpy.tools.misc.
get_recursive
(nested_data, recursive_key, separator='/')[source]¶ Extract specific value from a nested data structure.
- Parameters
- Returns
For example,
recursive_key="/some/sub/key"
will result in extracingnested_data["some"]["sub"]["key"]
.- Return type
entry
See also
set_recursive
same for changing/setting a value.
flatten
Get a completely flat structure.