Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stochastic equations can be falsely identified as multiplicative #968

Closed
mstimberg opened this issue Jun 8, 2018 · 0 comments · Fixed by #1085
Closed

Stochastic equations can be falsely identified as multiplicative #968

mstimberg opened this issue Jun 8, 2018 · 0 comments · Fixed by #1085

Comments

@mstimberg
Copy link
Member

The following code will not run, because Brian considers the noise to be multiplicative:

ta = TimedArray([0, 1], dt=defaultclock.dt*10)
group = NeuronGroup(1, 'dv/dt = ta(t)*xi*(5*ms)**-0.5 :1', method='euler')

For the exact state updater, we already deal with this situation by checking whether ta is constant over a time step, we should do the same for stochastic equations.

The workaround is straight-forward, you can select a state updater that supports multiplicative noise (e.g. heun)

First reported by Martin Bertele on the mailing list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant