-
Notifications
You must be signed in to change notification settings - Fork 46
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
Fix scaling for delta pulses #1013
Labels
Comments
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a spiking input port is written directly into the model, for instance:
then
spikes
is assumed to be a (piecewise) constant by ODE-toolbox, which means it generates code that involves a factor of Δt (the simulation resolution):However, if
spikes
is not a (piecewise) constant value, but a Dirac delta function, the factor Δt should not be inserted.This issue does not occur if the numerical solver is used, or if the delta appears inside a convolve() call inside the ODE.
See also #993.
The text was updated successfully, but these errors were encountered: