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

        Parameters
        ----------
        accel : float
            acceleration in *unit* to be converted to micro steps per square second
        unit : str
            unit from 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 integer; for conversion formula see: https://zaber.com/documents/ZaberSpeedSetting.xls
        return int(self.accel_units[unit] * accel * 1.6384 * 1e-7 * 1.0 / self.microstep)

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

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

accel : float
acceleration in *unit* to be converted to micro steps per square second
unit : str
unit from which acceleration should be converted.
Method to convert acceleration * accel * given in * unit * into micro steps per square second Parameters accel : float acceleration in * unit * to be converted to micro steps per square second unit : str unit from which acceleration should be converted .
def accel_to_step_s2(self, accel, unit="mm/s^2"):
        unit = self._check_unit(unit, self.accel_units)
        return int(self.accel_units[unit] * accel * 1.6384 * 1e-7 * 1.0 / self.microstep)
def accel_to_step_s2 ( self , accel , unit = "mm/s^2" ) : unit = self . _check_unit ( unit , self . accel_units ) return int ( self . accel_units [ unit ] * accel * 1.6384 * 1e-7 * 1.0 / self . microstep )
Method to convert acceleration *accel* given in *unit* into micro steps per square second
Parameters
Method to convert acceleration * accel * given in * unit * into micro steps per square second Parameters
"""
        Method to convert acceleration *accel* given in *unit* into micro steps per square second

        Parameters
        ----------
        accel : float
            acceleration in *unit* to be converted to micro steps per square second
        unit : str
            unit from 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 integer; for conversion formula see: https://zaber.com/documents/ZaberSpeedSetting.xls
self
accel
unit