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

time vec is no longer passed to step_current #164

Merged
merged 6 commits into from
Nov 9, 2023
Merged

time vec is no longer passed to step_current #164

merged 6 commits into from
Nov 9, 2023

Conversation

michaeldeistler
Copy link
Contributor

@michaeldeistler michaeldeistler commented Nov 8, 2023

API change

Old:

current = nx.step_current(i_delay, i_dur, i_amp, time_vec)

New:

current = nx.step_current(i_delay, i_dur, i_amp, dt, t_max)

Finally, after this PR, the exact solution will be the same (by a few microvolts). The reason is this: Previously, if i_dur was 2ms, then we stimulated from 1ms to 3ms, whereas the new version stimulates from 1ms to the last time step before 3ms.

@michaeldeistler michaeldeistler merged commit 1c7d60a into main Nov 9, 2023
1 check passed
@michaeldeistler michaeldeistler deleted the steps branch November 9, 2023 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant