Skip to content

Commit

Permalink
Update sir.py
Browse files Browse the repository at this point in the history
ruff E741: fixed ambiguous variables names
  • Loading branch information
Chase-Grajeda committed Jul 3, 2024
1 parent 469104d commit 583d169
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bayesflow/benchmarks/sir.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ def prior(rng: np.random.Generator = None):
def _deriv(x, t, N, beta, gamma):
"""Helper function for scipy.integrate.odeint."""

S, I, R = x
dS = -beta * S * I / N
dI = beta * S * I / N - gamma * I
dR = gamma * I
s, i, r = x
dS = -beta * s * i / N
dI = beta * s * i / N - gamma * i
dR = gamma * i
return dS, dI, dR


Expand Down

0 comments on commit 583d169

Please sign in to comment.