def pos_cb(pos, motor=motor, **kw): movable = Utils.get_movable_state_and_position(motor) if movable: signals.motor_position_callback(movable[motor]) else: logging.getLogger('HWR').exception("Could not call position callback for %s" % motor)
def light_pos_cb(pos, actuator_name=actuator_name, **kw): movable = utils.get_movable_state_and_position(motor) if movable: signals.motor_position_callback(movable[motor]) else: logging.getLogger("MX3.HWR").exception( "Could not call position callback for %s" % motor)
def pos_cb(pos, motor=motor, **kw): movable = Utils.get_movable_state_and_position(motor) if movable: signals.motor_position_callback(movable[motor]) else: logging.getLogger('HWR').exception( "Could not call position callback for %s" % motor)
def light_state_cb(state, actuator_name=actuator_name, **kw): movable = utils.get_movable_state_and_position(actuator_name) signals.motor_state_callback(movable[actuator_name], **kw) signals.motor_state_callback(movable[actuator_name + "Switch"], **kw) signals.motor_position_callback(movable[actuator_name + "Switch"])