class documentation

class RomDataTracker: (source)

Constructor: RomDataTracker()

View In Hierarchy

Class for tracking range of motion data.

The attributes storing data are:

  • stage_coords A list of the the stage coordinates at each measurement location
  • displacements A list of the displacement calculated after each movement
Method __init__ Define useful data tracked throughout test.
Method predict_z_displacement Predict the z-displacement needed for a given movement.
Method record_movement Record the current position and the measured offset of the last move.
Instance Variable offsets Undocumented
Instance Variable stage_coords Undocumented
Property final_position The last stage coordinate recorded.
def __init__(self): (source)

Define useful data tracked throughout test.

def predict_z_displacement(self, axis: Literal['x', 'y'], stage_movement: dict[str, int], stage_position: dict[str, int]) -> int: (source)

Predict the z-displacement needed for a given movement.

Parameters
axis:Literal['x', 'y']The axis which is being measured. This must be 'x' or 'y'.
stage_movement:dict[str, int]The movement to be performed in stage coordinates.
stage_position:dict[str, int]The current stage position in stage coordinates.
Returns
intThe predicted relative z displacement needed to stay in focus.
def record_movement(self, current_pos: dict[str, int], offset: dict[str, float]): (source)

Record the current position and the measured offset of the last move.

offsets: list[dict[str, float]] = (source)

Undocumented

stage_coords: list[dict[str, int]] = (source)

Undocumented

@property
final_position: dict[str, int] = (source)

The last stage coordinate recorded.