commonpower.control.wrappers.list_to_ctrl_dict
- list_to_ctrl_dict(input_list: list, original_keys: dict) dict[source]
Reverses the transform_to_ordered_dict_keys function.
- Parameters:
input_list (list) – list of control actions for each agent
original_keys (dict) – nested dictionary of original action keys for each agent
{agent_id (as) – {node_id: list[element_ids]}}
- Returns:
dict – original dictionary mapping {original_key: value}