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:
AbstractActuator
Mock Motor implementation
- set_value(value, timeout=0)[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 attemp to set read-only actuator.
RuntimeError – Timeout.