def METHOD_NAME(
        self, connection_row_indices, n_rows, data, max_n_synapses):
    """
    Converts per-connection data generated from connections into
    row-based data to be returned from get_synaptic_data.
    :param ~numpy.ndarray connection_row_indices:
        The index of the row that each item should go into
    :param int n_rows:
        The number of rows
    :param ~numpy.ndarray data:
        The non-row-based data
    :param int max_n_synapses:
        The maximum number of synapses to generate in each row
    :rtype: list(~numpy.ndarray)
    """
    return [
        data[connection_row_indices == i][:max_n_synapses].reshape(-1)
        for i in range(n_rows)]