Skip to content

Commit

Permalink
resimulate
Browse files Browse the repository at this point in the history
  • Loading branch information
olive004 committed Nov 6, 2024
1 parent 2389799 commit 9a946e5
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions notebooks/23_Monte_Carlo_adaptability_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@
"k_a = 0.00150958097\n",
"signal_target = 2\n",
"t0 = 0\n",
"t1 = 10\n",
"t1 = 500\n",
"ts = np.linspace(t0, t1, 500)\n",
"tmax = 1\n",
"tmax = 1000\n",
"dt0 = 0.005555558569638981\n",
"dt1_factor = 5\n",
"dt1 = dt0 * dt1_factor\n",
Expand Down Expand Up @@ -198,27 +198,6 @@
"# sol_signal = jax.vmap(bioreaction_sim_dfx_expanded)(y01, reverse_rates)"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"1820"
]
},
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len(jnp.where(jnp.sort(jnp.nanmax(adaptability[:, idxs_output], axis=1))[\n",
" -choose_max:].min() <= adaptability[:, idxs_output])[0])"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit 9a946e5

Please sign in to comment.