ArangeLoop
- class caqtus.types.iteration.ArangeLoop(
- sub_steps: list[TypeAliasForwardRef('Step')],
- variable: DottedVariableName,
- start: Expression,
- stop: Expression,
- step: Expression,
Bases:
ContainsSubStepsRepresents a loop that iterates between two values with a fixed step size.
- 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.
- step
The step size between each value.
- 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, stop and step expressions of the loop.
- Raises:
EvaluationError – if the start, stop or step expressions could not be evaluated.
NotAnalogValueError – if the start, stop or step expressions don’t evaluate to an analog value.
InvalidDimensionalityError – if the start, stop and step values are not commensurate.