Skip to content

Commit 7db8feb

Browse files
Fix a major bug in _dydt
This solves a *major bug* in the code. The properly adjusted reaction rate constants weren't used, but they are now.
1 parent 69379a7 commit 7db8feb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

overreact/simulate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def get_dydt(scheme, k, ef=EF):
226226
k_adj = _adjust_k(scheme, k, ef=ef)
227227

228228
def _dydt(t, y):
229-
r = k * jnp.prod(jnp.power(y, M), axis=1)
229+
r = k_adj * jnp.prod(jnp.power(y, M), axis=1)
230230
return jnp.dot(A, r)
231231

232232
if _found_jax:

0 commit comments

Comments
 (0)