LinspaceLoop
- class caqtus.types.iteration.LinspaceLoop(
- sub_steps: list[TypeAliasForwardRef('Step')],
- variable: DottedVariableName,
- start: Expression,
- stop: Expression,
- num,
Bases:
ContainsSubStepsRepresents a loop that iterates between two values with a fixed number of steps.
- variable
The name of the variable that is being iterated over.
- start
The start value of the variable.
- stop
The stop value of the variable.
- loop_values(
- evaluation_context: Mapping[DottedVariableName, Any],
Returns the values that the variable represented by this loop takes.
- Parameters:
evaluation_context – Contains the value of the variables with which to evaluate the start and stop expressions of the loop.
- Raises:
EvaluationError – if the start or stop expressions could not be evaluated.
NotAnalogValueError – if the start or stop expressions don’t evaluate to an analog value.
DimensionalityError – if the start or stop values are not commensurate.