def convert_sequence_to_motor_units(cycles, unit_converter):
<EOL>cv_cycles = copy.deepcopy(cycles)<EOL>for cycle in cv_cycles:<EOL><INDENT>for move in cycle['<STR_LIT>']:<EOL><INDENT>move['<STR_LIT:A>'] = unit_converter.to_motor_velocity_acceleration(move['<STR_LIT:A>'])<EOL>move['<STR_LIT>'] =unit_converter.to_motor_velocity_acceleration(move['<STR_LIT>'])<EOL>move['<STR_LIT>'] = unit_converter.to_motor_velocity_acceleration(move['<STR_LIT>'])<EOL>move['<STR_LIT:D>'] = int(unit_converter.to_motor_distance(move['<STR_LIT:D>']))<EOL><DEDENT><DEDENT>return cv_cycles<EOL>
Converts a move sequence to motor units.

    Converts a move sequence to motor units using the provied converter.

    Parameters
    ----------
    cycles : iterable of dicts
        The iterable of cycles of motion to do one after another. See
        ``compile_sequence`` for format.
    unit_converter : UnitConverter, optional
        ``GeminiMotorDrive.utilities.UnitConverter`` to use to convert
        the units in `cycles` to motor units.

    Returns
    -------
    motor_cycles : list of dicts
        A deep copy of `cycles` with all units converted to motor units.

    See Also
    --------
    compile_sequence
    GeminiMotorDrive.utilities.UnitConverter