irrad_control/devices/stage/xystage.py
def accel_to_unit(self, accel, unit='mm/s2'):
        """
        Method to convert acceleration *accel* given in micro steps per square second into *unit*

        Parameters
        ----------
        accel : int
            acceleration in micro steps per square second
        unit : str
            unit in which acceleration should be converted. Must be in self.accel_units
        """

        # Check if unit is sane; if it checks out, return same unit, else returns smallest available unit
        unit = self._check_unit(unit, self.accel_units)

        # Return result as float; for conversion formula see: https://zaber.com/documents/ZaberSpeedSetting.xls
        return float(1.0 / self.accel_units[unit] * accel / 1.6384 * 1e7 * self.microstep)

        Method to convert acceleration *accel* given in micro steps per square second into *unit*

        Parameters
        ----------
        accel : int
            acceleration in micro steps per square second
        unit : str
            unit in which acceleration should be converted. Must be in self.accel_units
        
Method to convert acceleration *accel* given in micro steps per square second into *unit
Parameters

accel : int
acceleration in micro steps per square second
unit : str
unit in which acceleration should be converted.
Method to convert acceleration * accel * given in micro steps per square second into * unit Parameters accel : int acceleration in micro steps per square second unit : str unit in which acceleration should be converted .
def accel_to_unit(self, accel, unit='mm/s2'):
        unit = self._check_unit(unit, self.accel_units)
        return float(1.0 / self.accel_units[unit] * accel / 1.6384 * 1e7 * self.microstep)
def accel_to_unit ( self , accel , unit = 'mm/s2' ) : unit = self . _check_unit ( unit , self . accel_units ) return float ( 1.0 / self . accel_units [ unit ] * accel / 1.6384 * 1e7 * self . microstep )
Method to convert acceleration *accel* given in micro steps per square second into *unit
Parameters
Method to convert acceleration * accel * given in micro steps per square second into * unit Parameters
"""
        Method to convert acceleration *accel* given in micro steps per square second into *unit*

        Parameters
        ----------
        accel : int
            acceleration in micro steps per square second
        unit : str
            unit in which acceleration should be converted. Must be in self.accel_units
        """ # Check if unit is sane; if it checks out, return same unit, else returns smallest available unit # Return result as float; for conversion formula see: https://zaber.com/documents/ZaberSpeedSetting.xls
self
accel
unit