Dear Nosratullah,

there’s no built-in mechanism for this in NEST. You have to manually post-process the data using a dict comprehension along these lines:

neuron_id = 123
spike_data = GetStatus(your_spike_detector, "events")[0]
d = {k: [x for i, x in enumerate(v) if spike_data['senders'][i] == neuron_id] 
                                       for k, v in spike_data.items()}

If you know the neuron’s ID in advance, it might of course be easier to simply use another spike detector to just record the data from that one neuron.

Cheers,
Jochen!

On 29.11.20 09:22, nosratullah mohammadi wrote:

Dear NEST Users,

I wonder how to get single neuron spikes out of spike detector that record all of the neurons in the network.

Best,
Nosratullah Mohammadi (Mr.)
_______________________________________________
NEST Users mailing list -- users@nest-simulator.org
To unsubscribe send an email to users-leave@nest-simulator.org

-- 
Dr. Jochen Martin Eppler
Phone: +49(2461)61-96653
----------------------------------
Simulation Laboratory Neuroscience
Jülich Supercomputing Centre
Institute for Advanced Simulation


------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Volker Rieke
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------