Skip to content

Commit 9ce56eb

Browse files
Merge branch 'neurolib-dev:master' into Lead_Field_Matrix
2 parents ffdac07 + 9b6b2b8 commit 9ce56eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neurolib/models/bold/timeIntegration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ def integrateBOLD_numba(BOLD, X, Q, F, V, Z, dt, N, rho, alpha, V0, k1, k2, k3,
9696
for i in range(len(Z[0, :])): # loop over all timesteps
9797
# component-wise loop for compatibilty with numba
9898
for j in range(N): # loop over all areas
99+
F[j] = max(F[j], EPS)
100+
99101
X[j] = X[j] + dt * (Z[j, i] - K[j] * X[j] - Gamma[j] * (F[j] - 1))
100102
Q[j] = Q[j] + dt / Tau[j] * (F[j] / rho * (1 - (1 - rho) ** (1 / F[j])) - Q[j] * V[j] ** (1 / alpha - 1))
101103
V[j] = V[j] + dt / Tau[j] * (F[j] - V[j] ** (1 / alpha))
102104
F[j] = F[j] + dt * X[j]
103105

104-
F[j] = max(F[j], EPS)
105-
106106
BOLD[j, i] = V0 * (k1 * (1 - Q[j]) + k2 * (1 - Q[j] / V[j]) + k3 * (1 - V[j]))
107107
return BOLD, X, F, Q, V

0 commit comments

Comments
 (0)