irrad_control/devices/stage/xystage.py
def speed_to_unit(self, speed, unit='mm/s'):
        """
        Convert integer speed in steps per second to some unit in self.speed_units

        Parameters
        ----------
        speed : int
            speed in micro steps per second
        unit : str
            unit in 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 float; for conversion formula see: https://zaber.com/documents/ZaberSpeedSetting.xls
        return float(1.0 / self.speed_units[unit] * speed / 1.6384 * 1e3 * self.microstep)

        Convert integer speed in steps per second to some unit in self.speed_units

        Parameters
        ----------
        speed : int
            speed in micro steps per second
        unit : str
            unit in which speed should be converted. Must be in self.speed_units.
        
Convert integer speed in steps per second to some unit in self.speed_units
Parameters

speed : int
speed in micro steps per second
unit : str
unit in which speed should be converted.
Convert integer speed in steps per second to some unit in self . speed_units Parameters speed : int speed in micro steps per second unit : str unit in which speed should be converted .
def speed_to_unit(self, speed, unit='mm/s'):
        unit = self._check_unit(unit, self.speed_units)
        return float(1.0 / self.speed_units[unit] * speed / 1.6384 * 1e3 * self.microstep)
def speed_to_unit ( self , speed , unit = 'mm/s' ) : unit = self . _check_unit ( unit , self . speed_units ) return float ( 1.0 / self . speed_units [ unit ] * speed / 1.6384 * 1e3 * self . microstep )
Convert integer speed in steps per second to some unit in self.speed_units
Parameters
Convert integer speed in steps per second to some unit in self . speed_units Parameters
"""
        Convert integer speed in steps per second to some unit in self.speed_units

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