Skip to content

Commit 9c46351

Browse files
Apply black
1 parent c23a009 commit 9c46351

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
@@ -33,7 +33,9 @@ def test_brazil_band_collection(datadir):
3333
assert brazil_band_collection.clb is None
3434
assert brazil_band_collection.axes == ax
3535

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

3941
fig = Figure()
@@ -87,7 +89,9 @@ def test_plot_results_no_axis(datadir):
8789

8890
@pytest.mark.mpl_image_compare
8991
def test_plot_results_components(datadir):
90-
with open(datadir.join("tail_probs_hypotest_results.json"), encoding="utf-8") as data_file:
92+
with open(
93+
datadir.join("tail_probs_hypotest_results.json"), encoding="utf-8"
94+
) as data_file:
9195
data = json.load(data_file)
9296

9397
fig = Figure()
@@ -100,7 +104,9 @@ def test_plot_results_components(datadir):
100104

101105
@pytest.mark.mpl_image_compare
102106
def test_plot_results_components_no_clb(datadir):
103-
with open(datadir.join("tail_probs_hypotest_results.json"), encoding="utf-8") as data_file:
107+
with open(
108+
datadir.join("tail_probs_hypotest_results.json"), encoding="utf-8"
109+
) as data_file:
104110
data = json.load(data_file)
105111

106112
fig = Figure()
@@ -121,7 +127,9 @@ def test_plot_results_components_no_clb(datadir):
121127

122128
@pytest.mark.mpl_image_compare
123129
def test_plot_results_components_no_clsb(datadir):
124-
with open(datadir.join("tail_probs_hypotest_results.json"), encoding="utf-8") as data_file:
130+
with open(
131+
datadir.join("tail_probs_hypotest_results.json"), encoding="utf-8"
132+
) as data_file:
125133
data = json.load(data_file)
126134

127135
fig = Figure()
@@ -142,7 +150,9 @@ def test_plot_results_components_no_clsb(datadir):
142150

143151
@pytest.mark.mpl_image_compare
144152
def test_plot_results_components_no_cls(datadir):
145-
with open(datadir.join("tail_probs_hypotest_results.json"), encoding="utf-8") as data_file:
153+
with open(
154+
datadir.join("tail_probs_hypotest_results.json"), encoding="utf-8"
155+
) as data_file:
146156
data = json.load(data_file)
147157

148158
fig = Figure()

0 commit comments

Comments
 (0)