Skip to content

Commit 687f2df

Browse files
Apply black
1 parent 5ed9662 commit 687f2df

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

docs/examples/notebooks/ImpactPlot.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,13 @@
7676
"outputs": [],
7777
"source": [
7878
"def make_model(channel_list):\n",
79-
" with open(\"1Lbb-probability-models/RegionA/BkgOnly.json\", encoding=\"utf-8\") as spec_file:\n",
79+
" with open(\n",
80+
" \"1Lbb-probability-models/RegionA/BkgOnly.json\", encoding=\"utf-8\"\n",
81+
" ) as spec_file:\n",
8082
" spec = json.load(spec_file)\n",
81-
" with open(\"1Lbb-probability-models/RegionA/patchset.json\", encoding=\"utf-8\") as patchset_file:\n",
83+
" with open(\n",
84+
" \"1Lbb-probability-models/RegionA/patchset.json\", encoding=\"utf-8\"\n",
85+
" ) as patchset_file:\n",
8286
" patchset = pyhf.PatchSet(json.load(patchset_file))\n",
8387
"\n",
8488
" patch = patchset[\"sbottom_750_745_60\"]\n",

docs/examples/notebooks/multichannel-coupled-histo.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@
165165
}
166166
],
167167
"source": [
168-
"with open(validation_datadir + \"/2bin_2channel_coupledhisto.json\", encoding=\"utf-8\") as source_file:\n",
168+
"with open(\n",
169+
" validation_datadir + \"/2bin_2channel_coupledhisto.json\", encoding=\"utf-8\"\n",
170+
") as source_file:\n",
169171
" source = json.load(source_file)\n",
170172
"\n",
171173
"data, pdf = prep_data(source[\"channels\"])\n",

tests/contrib/test_viz.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ def test_brazil_band_collection(datadir):
3232
assert brazil_band_collection.clb is None
3333
assert brazil_band_collection.axes == ax
3434

35-
with open(datadir.join("tail_probs_hypotest_results.json"), encoding="utf-8") as data_file:
35+
with open(
36+
datadir.join("tail_probs_hypotest_results.json"), encoding="utf-8"
37+
) as data_file:
3638
data = json.load(data_file)
3739

3840
fig = Figure()
@@ -82,7 +84,9 @@ def test_plot_results_no_axis(datadir):
8284

8385
@pytest.mark.mpl_image_compare
8486
def test_plot_results_components(datadir):
85-
with open(datadir.join("tail_probs_hypotest_results.json"), encoding="utf-8") as data_file:
87+
with open(
88+
datadir.join("tail_probs_hypotest_results.json"), encoding="utf-8"
89+
) as data_file:
8690
data = json.load(data_file)
8791

8892
fig = Figure()
@@ -95,7 +99,9 @@ def test_plot_results_components(datadir):
9599

96100
@pytest.mark.mpl_image_compare
97101
def test_plot_results_components_no_clb(datadir):
98-
with open(datadir.join("tail_probs_hypotest_results.json"), encoding="utf-8") as data_file:
102+
with open(
103+
datadir.join("tail_probs_hypotest_results.json"), encoding="utf-8"
104+
) as data_file:
99105
data = json.load(data_file)
100106

101107
fig = Figure()
@@ -116,7 +122,9 @@ def test_plot_results_components_no_clb(datadir):
116122

117123
@pytest.mark.mpl_image_compare
118124
def test_plot_results_components_no_clsb(datadir):
119-
with open(datadir.join("tail_probs_hypotest_results.json"), encoding="utf-8") as data_file:
125+
with open(
126+
datadir.join("tail_probs_hypotest_results.json"), encoding="utf-8"
127+
) as data_file:
120128
data = json.load(data_file)
121129

122130
fig = Figure()
@@ -137,7 +145,9 @@ def test_plot_results_components_no_clsb(datadir):
137145

138146
@pytest.mark.mpl_image_compare
139147
def test_plot_results_components_no_cls(datadir):
140-
with open(datadir.join("tail_probs_hypotest_results.json"), encoding="utf-8") as data_file:
148+
with open(
149+
datadir.join("tail_probs_hypotest_results.json"), encoding="utf-8"
150+
) as data_file:
141151
data = json.load(data_file)
142152

143153
fig = Figure()

0 commit comments

Comments
 (0)