Workflow#

class pharmpy.workflows.Workflow(builder=None, graph=None, name=None)[source]#

Bases: WorkflowBase, Generic[T], Immutable

Workflow class

Representation of a directed acyclic graph with Tasks as nodes and the flow of parameters as edges.

Parameters:

tasks (list) – List of tasks for initialization

Attributes Summary

name

Name of Workflow

Methods Summary

as_dask_dict()

Create a dask workflow dictionary

create([builder, graph, name])

plot_dask(filename)

Save a visualization of workflow to file

replace(**kwargs)

Attributes Documentation

name#

Name of Workflow

Methods Documentation

as_dask_dict()[source]#

Create a dask workflow dictionary

Returns:

dict – Dask workflow dictionary

classmethod create(builder=None, graph=None, name=None)[source]#
plot_dask(filename)[source]#

Save a visualization of workflow to file

Parameters:

filename (str) – Path

replace(**kwargs)[source]#