From da09eba28ce55d6ee896a99a7d25a8ee82fa48f1 Mon Sep 17 00:00:00 2001 From: Janos Gabler Date: Fri, 19 Jul 2024 17:08:48 +0200 Subject: [PATCH] Fix warning in notebook. --- docs/source/tutorials/optimization_overview.ipynb | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/docs/source/tutorials/optimization_overview.ipynb b/docs/source/tutorials/optimization_overview.ipynb index 58b53ba3f..51a4a4b66 100644 --- a/docs/source/tutorials/optimization_overview.ipynb +++ b/docs/source/tutorials/optimization_overview.ipynb @@ -410,16 +410,6 @@ "execution_count": 15, "metadata": {}, "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/Users/janosgabler/Dropbox/Projects/optimagic/src/optimagic/deprecations.py:29: FutureWarning:\n", - "\n", - "To align optimagic with scipy.optimize, the `derivative` argument has been renamed to `jac`. Please use `jac` instead of `derivative`. Using `derivative` will become an error in optimagic version 0.6.0 and later.\n", - "\n" - ] - }, { "data": { "text/plain": [ @@ -436,7 +426,7 @@ " fun=sphere,\n", " params=np.arange(5),\n", " algorithm=\"scipy_lbfgsb\",\n", - " derivative=sphere_gradient,\n", + " jac=sphere_gradient,\n", ")\n", "res.params.round(5)" ]