mxcubecore.HardwareObjects.mockup.ActuatorMockup¶
Mixin superclass for all mock actuators
Should be put as the first superclass, e.g. class MotorMockup(ActuatorMockup, AbstractMotor):
Classes
|
Mock Motor implementation |
- class mxcubecore.HardwareObjects.mockup.ActuatorMockup.ActuatorMockup(name)[source]¶
Bases:
AbstractActuatorMock Motor implementation
- set_value(value: Any, timeout: float | None = 0) None[source]¶
Set actuator to absolute value. This is NOT the recommended way, but for technical reasons overriding is necessary in this particular case :param value: target value :type value: float :param timeout: optional - timeout [s],
If timeout == 0: return at once and do not wait (default); if timeout is None: wait forever.
- Raises:
ValueError – Value not valid or attempt to set read-only actuator.
RuntimeError – Timeout.
- Parameters:
- Return type:
None