Skip to content

Commit 0f4a8c4

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e9d192a commit 0f4a8c4

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

notebook/diagonal.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"metadata": {},
77
"outputs": [],
88
"source": [
9-
"from jacobi import propagate, jacobi\n",
9+
"from jacobi import jacobi\n",
1010
"import numpy as np\n",
1111
"from matplotlib import pyplot as plt\n",
1212
"import timeit"
@@ -39,7 +39,7 @@
3939
" orig = jacobi._propagate._try_reduce_jacobian\n",
4040
" jacobi._propagate._try_reduce_jacobian = lambda x: x\n",
4141
"\n",
42-
" timer = timeit.Timer(f\"propagate(fn, x, xcov, diagonal=False)\",\n",
42+
" timer = timeit.Timer(\"propagate(fn, x, xcov, diagonal=False)\",\n",
4343
" globals=locals())\n",
4444
" k, ti = timer.autorange()\n",
4545
" t[key].append(ti / k)\n",

notebook/explore.ipynb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@
99
"source": [
1010
"import numpy as np\n",
1111
"import matplotlib.pyplot as plt\n",
12-
"from typing import Callable, Optional, Tuple\n",
1312
"import numdifftools as nd\n",
1413
"import sympy as sp\n",
15-
"from iminuit import Minuit\n",
16-
"from iminuit.cost import LeastSquares\n",
1714
"import tabulate"
1815
]
1916
},
@@ -728,7 +725,7 @@
728725
"fp1, fp1e = derive(F(x), 0)\n",
729726
"\n",
730727
"pull = (fp1 - fp(x)) / fp1e\n",
731-
"plt.hist(pull, bins=100, range=(-5,5));\n",
728+
"plt.hist(pull, bins=100, range=(-5,5))\n",
732729
"plt.title(f\"{np.std(pull):.2f} {mad(pull):.2f}\");"
733730
]
734731
},

0 commit comments

Comments
 (0)