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

        Parameters
        ----------
        steps : int
            distance in steps or position in steps
        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 float(steps * self.microstep * self.dist_units[unit] / 1e-3)

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

        Parameters
        ----------
        steps : int
            distance in steps or position in steps
        unit : str
            unit in which distance is given. Must be in self.dist_units
        
Method to convert a *steps* given in distance given in *unit
Parameters

steps : int
distance in steps or position in steps
unit : str
unit in which distance is given.
Method to convert a * steps * given in distance given in * unit Parameters steps : int distance in steps or position in steps unit : str unit in which distance is given .
def steps_to_distance(self, steps, unit="mm"):
        unit = self._check_unit(unit, self.dist_units)
        return float(steps * self.microstep * self.dist_units[unit] / 1e-3)
def steps_to_distance ( self , steps , unit = "mm" ) : unit = self . _check_unit ( unit , self . dist_units ) return float ( steps * self . microstep * self . dist_units [ unit ] / 1e-3 )
Method to convert a *steps* given in distance given in *unit
Parameters
Method to convert a * steps * given in distance given in * unit Parameters
"""
        Method to convert a *steps* given in distance given in *unit*

        Parameters
        ----------
        steps : int
            distance in steps or position in steps
        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
steps
unit