def to_motor_distance(self, distance):
if isinstance(distance, collections.Iterable):<EOL><INDENT>return [(x * self._distance_to_motor) for x in distance]<EOL><DEDENT>else:<EOL><INDENT>return distance * self._distance_to_motor<EOL><DEDENT>
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.