Hello Brian Community,
I am monitoring the voltage membrane of the LIF Neuron and I notice that the stateMonitor is showing the value of the voltage membrane equal to the resting voltage even though it is not (double checked by the spikemonitor).
This behavior was repeated when the neuron reaches its maximum firing rate (according to the simulation). I attached a figure to clarify my issue
is there any justification for this ?
Hi @Haydar. I think you are most likely seeing the result of the fact that the
StateMonitor records the first value at each time step. If your input is strong enough to go from the reset value to above the threshold within a single time step, a recording with the
StateMonitor will only show the reset value. A quick fix is to use
StateMonitor with e.g.
when='before_thresholds' to record the value before it is compared against the threshold.
For a detailed explanation of this issue, please have a look at this blog post/video: Getting the timing right (scheduling 1) | The Brian spiking neural network simulator
Thank you so much @mstimberg