From 7f16b50adf457c7cc08815fc993daf371c184bec Mon Sep 17 00:00:00 2001 From: Sunniva Indrehus Date: Mon, 2 Dec 2024 09:50:02 +0100 Subject: [PATCH] test paths --- .github/workflows/ci.yml | 2 ++ demo/damped_sine_optimization.ipynb | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index edbe758..2e866df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,8 @@ jobs: mv talk/slides.html index.html cp -r talk/figures figures git add index.html + git add -f talk/figures + git add talk/slides.html git add -f figures git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" diff --git a/demo/damped_sine_optimization.ipynb b/demo/damped_sine_optimization.ipynb index 56737dd..1ff5b96 100644 --- a/demo/damped_sine_optimization.ipynb +++ b/demo/damped_sine_optimization.ipynb @@ -132,7 +132,7 @@ "metadata": {}, "outputs": [], "source": [ - "method = \"nelder\" # You can play with different methods e.g.: \"nelder\"\n", + "method = \"\" # You can play with different methods e.g.: \"nelder\"\n", "minimizer = Minimizer(residual, parameters_initial, fcn_args=(x, data))\n", "result = minimizer.minimize(method=method)\n", "\n", @@ -159,7 +159,7 @@ "plt.scatter(x, data, label=\"Data\", color=\"red\", alpha=0.6)\n", "plt.plot(x, initial_model, label=\"Initial guess\", linestyle=\"--\", color=\"green\")\n", "plt.plot(x, final_model, label=\"Fit\", color=\"blue\")\n", - "plt.title(f\"Optimization using {method} method\")\n", + "plt.title(f\"Optimization using <{method}> method\")\n", "plt.xlabel(\"x\")\n", "plt.ylabel(\"y\")\n", "plt.legend()\n",