NeuralEnsemble / PyNN

A Python package for simulator-independent specification of neuronal network models.
Other
275 stars 125 forks source link

SpikeSourcePoisson: Crash on rate change (neuron backend) #784

Open uvest opened 1 year ago

uvest commented 1 year ago

I hope this is the right place to report this... sorry if not.

I am using neuron as the backend. When setting the rate of a SpikeSourcePoisson population the simulation crashes. This seems to be independent of what the initial value of the rate was. Find a minimum crashing example here:

import pyNN.neuron as sim

pop = sim.Population(size=1, cellclass=sim.SpikeSourcePoisson, cellparams={'rate' :5})

# This line crashes:
pop.set(rate=50)

When executed in a jupyter notebook, the kernel crashes. When executed from bash it throws the following error.

Assertion failed: nt && nt >= nrn_threads && nt < (nrn_threads + nrn_nthread), file D:/a/1/s/src/nrncvode/netcvode.cpp, line 737

System information:

Error also occurrs when executing the example A demonstration of the use of callbacks to vary the rate of a SpikeSourcePoisson from the docs. Error seems similar to issue #650 so maybe this is related to the backend. Or it's just me overlooking something...