class documentation
A dummy stage for testing purposes.
This stage should work similarly to a Sangaboard stage, but without any hardware attached.
| Method | __enter__ |
Register the stage position when the Thing context manager is opened. |
| Method | __exit__ |
Nothing to do when the Thing context manager is closed. |
| Method | __init__ |
Initialise the Dummy stage, setting the step_time to adjust the speed. |
| Method | set |
Make the current position zero in all axes. |
| Instance Variable | axis |
Used to convert coordinates between the program frame and the hardware frame. |
| Instance Variable | instantaneous |
Undocumented |
| Instance Variable | moving |
Whether the stage is in motion. |
| Instance Variable | step |
Undocumented |
| Method | _hardware |
Make an absolute move. Keyword arguments should be axis names. |
| Method | _hardware |
Make a relative move. Keyword arguments should be axis names. |
| Instance Variable | _hardware |
Undocumented |
Inherited from BaseStage:
| Method | get |
Return a tuple containing (x, y, z) position. |
| Method | invert |
Invert the direction setting of the given axis. |
| Method | move |
Make an absolute move. Keyword arguments should be axis names. |
| Method | move |
Make a relative move. Keyword arguments should be axis names. |
| Method | move |
Move to the location specified by an (x, y, z) tuple. |
| Property | axis |
The names of the stage's axes, in order. |
| Property | position |
Current position of the stage. |
| Property | thing |
Summary metadata describing the current state of the stage. |
| Method | _apply |
Undocumented |
| Class Variable | _axis |
Undocumented |
Initialise the Dummy stage, setting the step_time to adjust the speed.
| Parameters | |
stepfloat | The time in seconds per "motor" step. The default of 0.001 works well for the live simulation. For unit testing it is very slow so the speed can be increased. Increasing it too far is problematic if also doing computationally heavy tasks like simulated image blurring. |
| **kwargs | Undocumented |
Make the current position zero in all axes.
This action does not move the stage, but resets the position to zero. It is intended for use after manually or automatically recentring the stage.
def _hardware_move_absolute(self, cancel:
lt.deps.CancelHook, block_cancellation: bool = False, **kwargs: Mapping[ str, int]):
(source)
¶
Make an absolute move. Keyword arguments should be axis names.
def _hardware_move_relative(self, cancel:
lt.deps.CancelHook, block_cancellation: bool = False, **kwargs: Mapping[ str, int]):
(source)
¶
Make a relative move. Keyword arguments should be axis names.