Skip to content

Commit

Permalink
Fix bug where s * u wasn't computed correctly (#414)
Browse files Browse the repository at this point in the history
This fixes a serious bug in the Borgers NMDAergic synapse header file.
  • Loading branch information
alec-hoyland authored May 9, 2019
1 parent 4157a3e commit 9989629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c++/synapses/borgers/NMDAergic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void NMDAergic::integrate(void)
double sinf = s_inf(ss);

// integrate using exponential Euler
s = sinf + (s - sinf)*exp(-dt/tau_s(ss)) * 1.0 / (1.0 + Mg / 3.57 * exp(-0.062*V_post));
s = (sinf + (s - sinf)*exp(-dt/tau_s(ss))) * 1.0 / (1.0 + Mg / 3.57 * exp(-0.062*V_post));
g = gmax*s;
}

Expand Down

0 comments on commit 9989629

Please sign in to comment.