irrad_control/devices/stage/xystage.py
def speed_to_step_s(self, speed, unit="mm/s"):
        """
        Method to convert *speed* given in *unit* into micro steps per second

        Parameters
        ----------
        speed : float
            speed in *unit* to be converted to micro steps per second
        unit : str
            unit from which speed should be converted. Must be in self.speed_units
        """

        # Check if unit is okay
        unit = self._check_unit(unit, self.speed_units)

        # Return result as integer; for conversion formula see: https://zaber.com/documents/ZaberSpeedSetting.xls
        return int(self.speed_units[unit] * speed * 1.6384 * 1e-3 * 1.0 / self.microstep)

        Method to convert *speed* given in *unit* into micro steps per second

        Parameters
        ----------
        speed : float
            speed in *unit* to be converted to micro steps per second
        unit : str
            unit from which speed should be converted. Must be in self.speed_units
        
Method to convert *speed* given in *unit* into micro steps per second
Parameters

speed : float
speed in *unit* to be converted to micro steps per second
unit : str
unit from which speed should be converted.
Method to convert * speed * given in * unit * into micro steps per second Parameters speed : float speed in * unit * to be converted to micro steps per second unit : str unit from which speed should be converted .
def speed_to_step_s(self, speed, unit="mm/s"):
        unit = self._check_unit(unit, self.speed_units)
        return int(self.speed_units[unit] * speed * 1.6384 * 1e-3 * 1.0 / self.microstep)
def speed_to_step_s ( self , speed , unit = "mm/s" ) : unit = self . _check_unit ( unit , self . speed_units ) return int ( self . speed_units [ unit ] * speed * 1.6384 * 1e-3 * 1.0 / self . microstep )
Method to convert *speed* given in *unit* into micro steps per second
Parameters
Method to convert * speed * given in * unit * into micro steps per second Parameters
"""
        Method to convert *speed* given in *unit* into micro steps per second

        Parameters
        ----------
        speed : float
            speed in *unit* to be converted to micro steps per second
        unit : str
            unit from which speed should be converted. Must be in self.speed_units
        """ # Check if unit is okay # Return result as integer; for conversion formula see: https://zaber.com/documents/ZaberSpeedSetting.xls
self
speed
unit