Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
The `dt` attribute referenced by groups can be out-of-sync with the actual dt #684
If you change the
Note that there is nothing wrong during the simulation, the groups use the correct clock/dt.
In : defaultclock.dt = 0.5*ms In : G = NeuronGroup(1, '') # uses defaultclock In : defaultclock.dt Out: 0.5 * msecond In : G.clock.dt Out: 0.5 * msecond In : G.dt # <-- the problem Out: <neurongroup.dt: 100. * usecond> In : run(0*ms) # This will consolidate the clock information In : G.dt # <-- now all is good Out: <neurongroup.dt: 0.5 * msecond>