irrad_control/devices/stage/xystage.py
def distance_to_steps(self, distance, unit="mm"):
        """
        Method to convert a *distance* given in *unit* into micro steps

        Parameters
        ----------
        distance : float
            distance of travel
        unit : str
            unit in which distance is given. Must be in self.dist_units
        """

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

        return int(self.dist_units[unit] / 1e3 * distance / self.microstep)

        Method to convert a *distance* given in *unit* into micro steps

        Parameters
        ----------
        distance : float
            distance of travel
        unit : str
            unit in which distance is given. Must be in self.dist_units
        
Method to convert a *distance* given in *unit* into micro steps
Parameters

distance : float
distance of travel
unit : str
unit in which distance is given.
Method to convert a * distance * given in * unit * into micro steps Parameters distance : float distance of travel unit : str unit in which distance is given .
def distance_to_steps(self, distance, unit="mm"):
        unit = self._check_unit(unit, self.dist_units)
        return int(self.dist_units[unit] / 1e3 * distance / self.microstep)
def distance_to_steps ( self , distance , unit = "mm" ) : unit = self . _check_unit ( unit , self . dist_units ) return int ( self . dist_units [ unit ] / 1e3 * distance / self . microstep )
Method to convert a *distance* given in *unit* into micro steps
Parameters
Method to convert a * distance * given in * unit * into micro steps Parameters
"""
        Method to convert a *distance* given in *unit* into micro steps

        Parameters
        ----------
        distance : float
            distance of travel
        unit : str
            unit in which distance is given. Must be in self.dist_units
        """ # Check if unit is sane; if it checks out, return same unit, else returns smallest available unit
self
distance
unit