From 9e26037ff52a1bdd8e60ba376cbf0736a17c45fd Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Wed, 13 Dec 2023 15:33:50 +0100 Subject: [PATCH] GHA: increased number of optimizations for ExampleSplinesSwameye2003.ipynb (#2237) and use all available cores. This example fails too frequently, e.g. https://github.com/dweindl/AMICI/actions/runs/7193472391/job/19591997110 > Exception: All multistarts failed (n_starts is probably too small)! If this error occurred during CI, just run the workflow again. --- .../example_splines_swameye/ExampleSplinesSwameye2003.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/examples/example_splines_swameye/ExampleSplinesSwameye2003.ipynb b/python/examples/example_splines_swameye/ExampleSplinesSwameye2003.ipynb index 2a3c113bc7..e8b75e49aa 100644 --- a/python/examples/example_splines_swameye/ExampleSplinesSwameye2003.ipynb +++ b/python/examples/example_splines_swameye/ExampleSplinesSwameye2003.ipynb @@ -101,11 +101,11 @@ "source": [ "# If running as a GitHub action, just do the minimal amount of work required to check whether the code is working\n", "if os.getenv(\"GITHUB_ACTIONS\") is not None:\n", - " n_starts = 15\n", + " n_starts = 25\n", " pypesto_optimizer = pypesto.optimize.FidesOptimizer(\n", " verbose=logging.WARNING, options=dict(maxiter=10)\n", " )\n", - " pypesto_engine = pypesto.engine.SingleCoreEngine()" + " pypesto_engine = pypesto.engine.MultiProcessEngine()" ] }, {