plan4dial.for_generating.custom_actions.utils

Util functions that are useful in custom actions.

Authors: - Rebecca De Venezia

Functions

make_additional_updates(org_out, add_upd)

Update an outcome by the additional updates provided by the suer.

map_assignment_update(entity, assignment)

Given an entity and its assignment, returns the corresponding update.

make_additional_updates(org_out: Dict, add_upd: Dict) None[source]

Update an outcome by the additional updates provided by the suer.

Parameters:
  • org_out (Dict) – The original outcome.

  • add_upd (Dict) – The additional updates to be added to the outcome.

map_assignment_update(entity: str, assignment: str) Dict[source]

Given an entity and its assignment, returns the corresponding update.

Parameters:
  • entity (str) – The entity in the update.

  • assignment (str) – The assignment that describes if/how the entity was found.

Returns:

The update that corresponds to the entity and assignment provided.

Return type:

Dict