def METHOD_NAME(self, absolutePosition):
    kappa_start_pos = MicrodiffKappaMotor.motors["Kappa"].get_value()
    kappa_phi_start_pos = MicrodiffKappaMotor.motors["Phi"].get_value()
    if self.actuator_name == "Kappa":
        kappa_end_pos = absolutePosition
        kappa_phi_end_pos = kappa_phi_start_pos
    else:
        kappa_end_pos = kappa_start_pos
        kappa_phi_end_pos = absolutePosition
    sampx_start_pos = self.sampx.get_value()
    sampy_start_pos = self.sampy.get_value()
    phiy_start_pos = self.phiy.get_value()
    """
    with MicrodiffKappaMotor.lock:
        if self.get_state() != MotorStates.UNKNOWN:
            self.position_attr.set_value(
                absolutePosition
            )  # absolutePosition-self.offset)
            self.update_state(MotorStates.MOVING)
        # calculations
        newSamplePositions = self.getNewSamplePosition(
            kappa_start_pos,
            kappa_phi_start_pos,
            sampx_start_pos,
            sampy_start_pos,
            phiy_start_pos,
            kappa_end_pos,
            kappa_phi_end_pos,
        )
        self.sampx.set_value(newSamplePositions["sampx"])
        self.sampy.set_value(newSamplePositions["sampy"])
        self.phiy.set_value(newSamplePositions["phiy"])
    """