Skip to content

Commit bde5bec

Browse files
Apply Pareto's principle to the extent we simulate the reaction
1 parent 554531c commit bde5bec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

overreact/simulate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ def get_y(
113113
y0 = np.asarray(y0)
114114

115115
if t_span is None:
116-
# We defined alpha such that 1.0 - alpha is an estimate of the extend
117-
# to which the reaction is simulated.
118-
alpha = 1e-31
116+
# We defined alpha such that 1.0 - alpha is an (under)estimate of the extend
117+
# to which the reaction is simulated. And then we apply the Pareto principle.
118+
alpha = 0.2
119119
n_halflives = np.ceil(-np.log(alpha) / np.log(2))
120120

121121
halflife_estimate = 1.0

0 commit comments

Comments
 (0)