ChoiceParam

Contents

ChoiceParam#

class pulserver.design.ChoiceParam[source]#

Bases: object

A choice among the members of a StrEnum, bound to an argument of the sequence function.

The argument receives the chosen member, a str equal to its option. The options are the members in definition order, and the wire carries the index of the chosen one. default is the member the protocol starts at; None starts it at the sequence function’s default, which has to be a member or the value of one.

Attributes