neuroprob/utils/neural.py
def covariates_at_spikes(spiketimes, behaviour_data):
    """
    Returns tuple of covariate arrays at spiketimes for all neurons
    """
    cov_s = tuple([] for n in behaviour_data)
    units = len(spiketimes)
    for u in range(units):
        for k, cov_t in enumerate(behaviour_data):
            cov_s[k].append(cov_t[spiketimes[u]])
            
    return cov_s

    Returns tuple of covariate arrays at spiketimes for all neurons
    
Returns tuple of covariate arrays at spiketimes for all neurons
Returns tuple of covariate arrays at spiketimes for all neurons
def covariates_at_spikes(spiketimes, behaviour_data):
    cov_s = tuple([] for n in behaviour_data)
    units = len(spiketimes)
    for u in range(units):
        for k, cov_t in enumerate(behaviour_data):
            cov_s[k].append(cov_t[spiketimes[u]])
    return cov_s
def covariates_at_spikes ( spiketimes , behaviour_data ) : cov_s = tuple ( [ ] for n in behaviour_data ) units = len ( spiketimes ) for u in range ( units ) : for k , cov_t in enumerate ( behaviour_data ) : cov_s [ k ] . append ( cov_t [ spiketimes [ u ] ] ) return cov_s
Returns tuple of covariate arrays at spiketimes for all neurons
Returns tuple of covariate arrays at spiketimes for all neurons
"""
    Returns tuple of covariate arrays at spiketimes for all neurons
    """
spiketimes
behaviour_data