def METHOD_NAME(self, position_name):
    try:
        self.motor.set_value(self.predefined_positions[position_name])
    except Exception:
        logging.getLogger("HWR").exception("MotorWPositions: invalid position name")