irrad_control/devices/stage/xystage.py
def move_absolute(self, position, axis, unit=None):
        """
        Method to move along the given axis to the absolute position

        Parameters
        ----------
        position : float, int
            distance of travel in steps or float with a unit
        axis : zaber.serial.AsciiAxis
            either self.x_axis or self.y_axis
        unit : None, str
            unit in which distance is given. Must be in self.dist_units. If None, interpret as steps
        """

        # Get position in steps
        pos_steps = position if unit is None else self.distance_to_steps(position, unit)

        # Get minimum and maximum steps of travel
        min_step, max_step = int(axis.send("get limit.min").data), int(axis.send("get limit.max").data)

        # Check whether there's still room to move
        if not min_step <= pos_steps <= max_step:
            logging.error("Movement out of travel range. Abort!")
            return

        # Send command to axis and return reply
        _reply = axis.move_abs(pos_steps)
        self._check_reply(_reply)

        # Update position
        self.position = self.get_position()

        return _reply

        Method to move along the given axis to the absolute position

        Parameters
        ----------
        position : float, int
            distance of travel in steps or float with a unit
        axis : zaber.serial.AsciiAxis
            either self.x_axis or self.y_axis
        unit : None, str
            unit in which distance is given. Must be in self.dist_units. If None, interpret as steps
        
Method to move along the given axis to the absolute position
Parameters

position : float, int
distance of travel in steps or float with a unit
axis : zaber.serial.AsciiAxis
either self.x_axis or self.y_axis
unit : None, str
unit in which distance is given.
Method to move along the given axis to the absolute position Parameters position : float int distance of travel in steps or float with a unit axis : zaber . serial . AsciiAxis either self . x_axis or self . y_axis unit : None str unit in which distance is given .
def move_absolute(self, position, axis, unit=None):
        pos_steps = position if unit is None else self.distance_to_steps(position, unit)
        min_step, max_step = int(axis.send("get limit.min").data), int(axis.send("get limit.max").data)
        if not min_step <= pos_steps <= max_step:
            logging.error("Movement out of travel range. Abort!")
            return
        _reply = axis.move_abs(pos_steps)
        self._check_reply(_reply)
        self.position = self.get_position()
        return _reply
def move_absolute ( self , position , axis , unit = None ) : pos_steps = position if unit is None else self . distance_to_steps ( position , unit ) min_step , max_step = int ( axis . send ( "get limit.min" ) . data ) , int ( axis . send ( "get limit.max" ) . data ) if not min_step <= pos_steps <= max_step : logging . error ( "Movement out of travel range. Abort!" ) return _reply = axis . move_abs ( pos_steps ) self . _check_reply ( _reply ) self . position = self . get_position ( ) return _reply
Method to move along the given axis to the absolute position
Parameters
Method to move along the given axis to the absolute position Parameters
"""
        Method to move along the given axis to the absolute position

        Parameters
        ----------
        position : float, int
            distance of travel in steps or float with a unit
        axis : zaber.serial.AsciiAxis
            either self.x_axis or self.y_axis
        unit : None, str
            unit in which distance is given. Must be in self.dist_units. If None, interpret as steps
        """ # Get position in steps # Get minimum and maximum steps of travel # Check whether there's still room to move # Send command to axis and return reply # Update position
self
position
axis
unit