module documentation
File contains functions used to measure the stage against the camera.
This includes:
- Finding the centre of motion
- Measuring the range of motion
| Class | |
Class for tracking camera and stage movement together. |
| Class | |
Custom exception raised when parasitic motion is detected. |
| Class | |
A class used to measure the range of motion of the stage in X and Y. |
| Constant | BIG |
Undocumented |
| Constant | DETECT |
Undocumented |
| Constant | MEDIUM |
Undocumented |
| Constant | PARASITIC |
Undocumented |
| Constant | SMALL |
Undocumented |
| Function | _axis |
Return the axis that a given movement dictionary moves in. |
| Function | _parasitic |
Compare desired movement to measured offset, report if parasitic motion was detected. |
@overload
def _axis_from_movement_dict(movement:
Mapping[ str, float], return_other: Literal[ False]) -> str:@overload
def _axis_from_movement_dict(movement:
Mapping[ str, float], return_other: Literal[ True]) -> tuple[ str, str]:@overload
def _axis_from_movement_dict(movement:
Mapping[ str, float]) -> str:Return the axis that a given movement dictionary moves in.
For example: _axis_from_movement_dict({"x": 10, "y":0}) will return x.
| Parameters | |
movement:Mapping[ | The movement dictionary. |
returnbool | If True return a tuple with the first value being the movement axis and the second being the other axis. Default is False |
| Returns | |
str | tuple[ | The movement axis (and optionally the other axis) as strings. |
def _parasitic_motion_detected(movement:
Mapping[ str, float], offset: Mapping[ str, float]) -> bool:
(source)
¶
Compare desired movement to measured offset, report if parasitic motion was detected.
| Parameters | |
movement:Mapping[ | The movement dictionary in image coordinates. |
offset:Mapping[ | The offset calculated from correlation. |
| Returns | |
bool | True if too much parasitic motion is detects. False if movement is as expected. |