def _channels_list_to_dict(channels):
    """ Helper function to parse a list of channels to a dict of channels

    The keys will be `channel_(i+1)`, where i is the index of the list of
    channels. These keys will be used to make the different channels
    available in the Comlink object via e.g. `comlink.channel_1`.

    Parameters
    ----------

    channels : list
        List of ComlinkChannel objects

    Returns
    -------

    channel_dict : dict

    """
    channel_dict = {}
    for i, channel in enumerate(channels):
        channel_dict['channel_' + str(i + 1)] = channel
    return channel_dict
