call_workflow#

pharmpy.workflows.call_workflow(wf, unique_name, db)[source]#

Dynamically call a workflow from another workflow.

Currently only supports dask distributed

Parameters:
  • wf (Workflow) – A workflow object

  • unique_name (str) – A name of the results node that is unique between parent and dynamically created workflows

  • db (ToolDatabase) – ToolDatabase to pass to new workflow

Returns:

Any – Whatever the dynamic workflow returns