Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 30, 2024
1 parent 257e7d2 commit 73c1303
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions notebook/diagonal.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand Down
5 changes: 1 addition & 4 deletions notebook/explore.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
Expand Down Expand Up @@ -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}\");"
]
},
Expand Down

0 comments on commit 73c1303

Please sign in to comment.