def parse_hal_spikes(hal_spikes):
    """Parses the tag information from the output of HAL

    Parameters
    ----------
    hal_spikes: output of HAL.get_spikes() (list of tuples)

    Returns a nested dictionary:
        [pool][neuron] = list of (times, 1) tuples
        The 1 is for consistency with the return of parse_hal_tags
    """
    parsed_spikes = {}
    for time, pool, neuron in hal_spikes:
        if pool not in parsed_spikes:
            parsed_spikes[pool] = {}
        if neuron not in parsed_spikes[pool]:
            parsed_spikes[pool][neuron] = []
        parsed_spikes[pool][neuron].append((time, 1))
    return parsed_spikes