Dear Rolandas,
I guess that the pyNN object you are looking for is
pynn.SpikeSourceArray
Please refer to the pynn documentation for more details:
http://neuralensemble.org/trac/PyNN/wiki/API-0.6
As an example, here is the pivotal line of Python code that worked for
me with Spikey:
import pyNN.hardware.spikey as pynn
stim = pynn.Population(1, pynn.SpikeSourceArray,
cellparams=dict(spike_times=[80., 100.]))
Now you can connect the stim-Population to target neurons just like any
other neuronal population. For a stim-population size > 1, all spike
sources will share the same spike_times (given in ms).
Does this solve your question?
Best regards,
Johannes
On 11/06/2016 09:46 PM, SUBSCRIBE KIP-SPIKEY-USERS Anonymous wrote:
> Hello,
>
> I don't quite understand how addressing of specific neurons in Spikey works. In BRIAN I'd pick some neurons that I want to generate spikes, then define times of spikes and feed this into spike generator:
>
> nrn_ind = [1, 3, 4, 7, 5, 2] #Indexes of neurons that I want to spike
> nrn_t = [4.4, 22.6, 30.4, 55, 62, 100] #Spiking times
> input = SpikeGeneratorGroup(6, nrn_ind, nrn_t*ms) # Generate input
>
> How should I do the same in Spikey?
>
> Thanks,
> Rolandas
>
> ########################################################################
>
> To unsubscribe from the KIP-SPIKEY-USERS list, click the following link:
> http://listserv.uni-heidelberg.de/cgi-bin/wa?TICKET=NzM2MzA0IGJpbGxAS0lQLlVOSS1IRUlERUxCRVJHLkRFIEtJUC1TUElLRVktVVNFUlMgIMqz%2B%2B0gkY3x&c=SIGNOFF
>
########################################################################
To unsubscribe from the KIP-SPIKEY-USERS list, click the following link:
https://listserv.uni-heidelberg.de/cgi-bin/wa?SUBED1=KIP-SPIKEY-USERS
|