pharmpy.tools.workflows module

class pharmpy.tools.workflows.Task(name, function, *task_input, final_task=False)[source]

Bases: object

force_new_id()[source]
has_input()[source]
class pharmpy.tools.workflows.Workflow(tasks=None)[source]

Bases: object

add_tasks(other, connect=False, output_nodes=None, as_single_element=True, arg_index=0)[source]

Keep all nodes and edges, connects output from first workflow to input in second if connect=True (assumes 1:M, M:1 or 1:1 connections)

as_dict()[source]
connect_tasks(connect_dict)[source]

Connects task with dict: {from: to}

copy(new_ids=True)[source]
static find_workflow_connections(wf1_out_tasks, wf2_in_tasks)[source]
force_new_task_ids()[source]
get_input()[source]
get_output()[source]
get_upstream_tasks(task)[source]
static id_convert(task)[source]
plot_dask(filename)[source]

Inheritance Diagram

Inheritance diagram of pharmpy.tools.workflows