mxcubecore.HardwareObjects.mockup.ActuatorMockup#

Mixin superclass for all mock actuators

Should be put as the first superclass, e.g. class MotorMockup(ActuatorMockup, AbstractMotor):

Classes

ActuatorMockup(name)

Mock Motor implementation

class mxcubecore.HardwareObjects.mockup.ActuatorMockup.ActuatorMockup(name)[source]#

Bases: AbstractActuator

Mock Motor implementation

abort()[source]#

Imediately halt movement. By default self.stop = self.abort

get_value()[source]#

Read the actuator position. :returns: Actuator position. :rtype: float

init()[source]#

Initialisation method

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: