Skip to content

Commit

Permalink
fix bug in WC jacobian
Browse files Browse the repository at this point in the history
  • Loading branch information
lenasal committed Dec 11, 2023
1 parent e4c55bb commit a947708
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion neurolib/models/wc/timeIntegration.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,10 @@ def compute_hx_nw(
for n2 in range(N):
for t in range(T - 1):
hx_nw[n1, n2, t, sv["exc"], sv["exc"]] = (
logistic_der(exc_input[n1, t], a_exc, mu_exc) * K_gl * cmat[n1, n2]
(1.0 - e[n1, t])
* logistic_der(exc_input[n1, t], a_exc, mu_exc)
* K_gl
* cmat[n1, n2]
) / tau_exc

return -hx_nw
Expand Down

0 comments on commit a947708

Please sign in to comment.