class documentation

class RecordedMove: (source)

Constructor: RecordedMove(stage)

View In Hierarchy

Call stage movement and maintain a record of position and time.

This class is callable, the callable wraps stage.move_to_xyz_position.

The class records a list of all moves made and how long they took. This is useful for calibrating the stage as it allows measuring how long moves take.

Method __call__ Move to a new position, and record it.
Method __init__ Set the stage client used for for movement.
Method clear_history Reset our history to be an empty list.
Property history The history, as a numpy array of times and another of positions.
Instance Variable _current_position Undocumented
Instance Variable _history Undocumented
Instance Variable _stage Undocumented
def __call__(self, new_position: CoordinateType): (source)

Move to a new position, and record it.

def __init__(self, stage: Stage): (source)

Set the stage client used for for movement.

Parameters
stage:Stagethe stage client to be used. stage.move_to_xyz_position will be called whenever the instance is called.
def clear_history(self): (source)

Reset our history to be an empty list.

@property
history: MoveHistory = (source)

The history, as a numpy array of times and another of positions.

_current_position: CoordinateType | None = (source)

Undocumented

_history: list[tuple[float, CoordinateType | None]] = (source)

Undocumented

Undocumented