WorkflowView#

class scikitplot.agent.WorkflowView(goal, node, channels, visits, last=None, branches=<factory>, finished=False)[source]#

Where a run stands in its workflow, rebuilt from the recorded steps.

Parameters:
goalstr

The run’s goal.

nodestr or None

The node the run is at; None once it finished.

channelsmapping

Every channel’s current value (a read-only copy).

visitsmapping of str to int

How many times each node has been entered.

lastStepSummary or None

The most recent step.

branchesmapping of str to StepSummary

The branches of the most recent fan-out, by branch name.

finishedbool

Whether a Finish node’s answer was accepted.

Parameters:
branches: Mapping[str, StepSummary][source]#
channels: Mapping[str, Any][source]#
digest()[source]#

Return the digest of this position: node, channels and visit counts.

Returns:
str

64 hexadecimal digits; equal for equal positions.

Return type:

str

finished: bool = False#
goal: str[source]#
last: StepSummary | None = None#
node: str | None[source]#
visits: Mapping[str, int][source]#