Description of problem
StateMonitor where the
record argument can be boolean or a vector of indices,
SpikeMonitor only allows for boolean
record values: that is either I record spikes from all my neurons in a given
NeuronGroup or none. Is there a simple way to bypass this? This could also be lumped into ‘Features requests’. The reason for this is that when I deal with large networks of neurons which I want to simulate for a long time, 'SpikeMonitor` easily sucks up all my memory resources.
Minimal code to reproduce problem
import numpy as np from brian2 import * N = 5000 F = 10*Hz neu_group = PoissonGroup(N, rates=F) mon = SpikeMonitor(neurons,record=True) run(duration=3600*second)
What you have aready tried
The reply should tell me how I can for example select the first
K<N neurons out my
neu_group or say neurons in
idx = np.arange(0,N,K).
Expected output (if relevant)
Actual output (if relevant)
Full traceback of error (if relevant)