Skip to content

Commit fff0ec1

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

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

examples/binning.ipynb

+3
Original file line numberDiff line numberDiff line change
@@ -1329,6 +1329,7 @@
13291329
"num_bins = 5\n",
13301330
"pars = jnp.linspace(0, 8, num_bins + 1)\n",
13311331
"\n",
1332+
"\n",
13321333
"# differentiable significance pipeline\n",
13331334
"def asimov_pipe(bins, s, b, bandwidth=1e-2):\n",
13341335
" # restrict bin edges so they don't overlap during optimisation\n",
@@ -1394,6 +1395,7 @@
13941395
"\n",
13951396
"from copy import deepcopy\n",
13961397
"\n",
1398+
"\n",
13971399
"# specify the workspace for a simple model with a three-point background systematic\n",
13981400
"def correlated_background(signal, bkg, bkg_up, bkg_down):\n",
13991401
" spec = {\n",
@@ -1430,6 +1432,7 @@
14301432
"\n",
14311433
"from pyhf import interpolators\n",
14321434
"\n",
1435+
"\n",
14331436
"# pipeline to calculate the full CLs for the model, given a number of bins\n",
14341437
"def pipe(num_bins):\n",
14351438
" def cls_pipe(bins, s, b, bup, bdown, bandwidth=1e-2, skeleton_model=None):\n",

examples/cuts.ipynb

+1
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@
391391
"from jaxopt import OptaxSolver\n",
392392
"from optax import adam\n",
393393
"\n",
394+
"\n",
394395
"# define something to minimise (1/significance)\n",
395396
"def loss(cut):\n",
396397
" s_weights = relaxed.cut(sig, cut, slope) + 1e-4\n",

examples/neos.ipynb

-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,6 @@
389389
" scale_factors: dict[str, float],\n",
390390
" include_bins: bool = True,\n",
391391
") -> tuple[Array, dict[str, list]]:\n",
392-
"\n",
393392
" loss = partial(\n",
394393
" pipeline,\n",
395394
" nn=nn,\n",

examples/simple-analysis-optimisation.ipynb

-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@
130130
"source": [
131131
"# our analysis pipeline, from phi to p-value\n",
132132
"def pipeline(phi, return_yields=False, uncertainty=True):\n",
133-
"\n",
134133
" # grab the yields at the value of phi we want\n",
135134
" y = yields(phi, uncertainty=uncertainty)\n",
136135
"\n",

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ author_email = [email protected]
99
maintainer = Nathan Simpson
1010
maintainer_email = [email protected]
1111
license = BSD-3-Clause
12-
license_file = LICENSE
12+
license_files = LICENSE
1313
platforms =
1414
Any
1515
classifiers =

0 commit comments

Comments
 (0)