Skip to content

dict_helpers.unflatten_dict

Full path: schola.core.utils.dict_helpers.unflatten_dict

Inverse of flatten_dict for a given template shape.

unflatten_dict(flat_dict, input_dict, prefix ='')

Parameters

  • flat_dict (dict) - Flat source values.

  • input_dict (dict) - Template nested structure whose key paths index into flat_dict.

  • prefix (str) - Same prefix convention as flatten_dict.