From a78dd5b9acda0146bb062d6f678ef7fff2afb9fe Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 26 Aug 2024 22:20:20 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- notebook/diagonal.ipynb | 4 ++-- notebook/explore.ipynb | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/notebook/diagonal.ipynb b/notebook/diagonal.ipynb index 1277b63..a4b6a0e 100644 --- a/notebook/diagonal.ipynb +++ b/notebook/diagonal.ipynb @@ -6,7 +6,7 @@ "metadata": {}, "outputs": [], "source": [ - "from jacobi import propagate, jacobi\n", + "from jacobi import jacobi\n", "import numpy as np\n", "from matplotlib import pyplot as plt\n", "import timeit" @@ -39,7 +39,7 @@ " orig = jacobi._propagate._try_reduce_jacobian\n", " jacobi._propagate._try_reduce_jacobian = lambda x: x\n", "\n", - " timer = timeit.Timer(f\"propagate(fn, x, xcov, diagonal=False)\",\n", + " timer = timeit.Timer(\"propagate(fn, x, xcov, diagonal=False)\",\n", " globals=locals())\n", " k, ti = timer.autorange()\n", " t[key].append(ti / k)\n", diff --git a/notebook/explore.ipynb b/notebook/explore.ipynb index 23a17c0..c279e34 100644 --- a/notebook/explore.ipynb +++ b/notebook/explore.ipynb @@ -9,11 +9,8 @@ "source": [ "import numpy as np\n", "import matplotlib.pyplot as plt\n", - "from typing import Callable, Optional, Tuple\n", "import numdifftools as nd\n", "import sympy as sp\n", - "from iminuit import Minuit\n", - "from iminuit.cost import LeastSquares\n", "import tabulate" ] }, @@ -728,7 +725,7 @@ "fp1, fp1e = derive(F(x), 0)\n", "\n", "pull = (fp1 - fp(x)) / fp1e\n", - "plt.hist(pull, bins=100, range=(-5,5));\n", + "plt.hist(pull, bins=100, range=(-5,5))\n", "plt.title(f\"{np.std(pull):.2f} {mad(pull):.2f}\");" ] },