Skip to content

Commit d359d33

Browse files
authored
doc: ignore simulation failures in spline example (#2876)
Reduce workflow failures - resample failed optimization startpoints, and reduce number of required starts in exchange.
1 parent 99fa0f6 commit d359d33

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/examples/example_splines_swameye/ExampleSplinesSwameye2003.ipynb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"source": [
102102
"# If running as a GitHub action, just do the minimal amount of work required to check whether the code is working\n",
103103
"if os.getenv(\"GITHUB_ACTIONS\") is not None:\n",
104-
" n_starts = 25\n",
104+
" n_starts = 5\n",
105105
" pypesto_optimizer = pypesto.optimize.FidesOptimizer(\n",
106106
" verbose=logging.WARNING, options=dict(maxiter=10)\n",
107107
" )\n",
@@ -1016,7 +1016,10 @@
10161016
"# Import PEtab problem into pyPESTO\n",
10171017
"pypesto_problem = pypesto.petab.PetabImporter(\n",
10181018
" petab_problem, model_name=name\n",
1019-
").create_problem()"
1019+
").create_problem(\n",
1020+
" # re-sample optimization startpoints in case of simulation errors\n",
1021+
" startpoint_kwargs={\"check_fval\": True, \"check_grad\": True}\n",
1022+
")"
10201023
]
10211024
},
10221025
{

0 commit comments

Comments
 (0)