runtraj.stages.ordered#

runtraj.stages.ordered(stages)[source]#

Return the names of stages in the order they run: each after the stages it reads.

Stages that do not read one another keep the order they were given in.

Raises:

ValueError – If a stage reads one that is not among stages, or stages read each other in a circle.

Return type:

list[str]

Parameters:

stages (Mapping[str, Stage])