def to_motor_distance(self, distance):
        """ Convert distance/s to motor units.

        Converts distance/s to units of motor encoder counts, which is
        what the drive requires when given move instructions.

        Parameters
        ----------
        distance : int, float, or iterable of ints and floats
            The distance/s to convert.

        Returns
        -------
        converted_distance : float or list of floats
            The converted distance/s.

        """
        if isinstance(distance, collections.Iterable):
            return [(x * self._distance_to_motor) for x in distance]
        else:
            return distance * self._distance_to_motor
def to_motor_distance ( self , distance ) : if isinstance ( distance , collections . Iterable ) : return [ ( x * self . _distance_to_motor ) for x in distance ] else : return distance * self . _distance_to_motor
Convert distance/s to motor units.

        Converts distance/s to units of motor encoder counts, which is
        what the drive requires when given move instructions.

        Parameters
        ----------
        distance : int, float, or iterable of ints and floats
            The distance/s to convert.

        Returns
        -------
        converted_distance : float or list of floats
            The converted distance/s.