Skip to content

Commit 9187939

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

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

mne/report/report.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"Generate self-contained HTML reports from MNE objects."""
1+
"Generate self-contained HTML reports from MNE objects."
22

33
# Authors: The MNE-Python contributors.
44
# License: BSD-3-Clause
@@ -830,7 +830,6 @@ def __init__(
830830
img_max_res=MAX_IMG_RES,
831831
collapse=(),
832832
verbose=None,
833-
834833
):
835834
self.projs = projs # Initialize self.projs
836835
self.info_fname = str(info_fname) if info_fname is not None else None
@@ -844,7 +843,7 @@ def __init__(
844843
self.subject = subject
845844
self.title = title
846845
self.image_format = _check_image_format(None, image_format)
847-
846+
848847
# dom_id is mostly for backward compat and testing nowadays
849848
self._dom_id = 0
850849
self._dup_limit = 10000 # should be enough duplicates
@@ -1251,13 +1250,14 @@ def add_epochs(
12511250
.. versionadded:: 0.24
12521251
"""
12531252
tags = _check_tags(tags)
1253+
12541254
add_projs = self.projs if projs is None else projs
12551255

12561256
if epochs._bad_dropped:
12571257
reject_info = f"<p><strong>Rejection Thresholds:</strong> {epochs.reject}</p>"
12581258
flat_info = f"<p><strong>Flat Thresholds:</strong> {epochs.flat}</p>"
12591259
self.add_html(reject_info + flat_info)
1260-
1260+
12611261
self._add_epochs(
12621262
epochs=epochs,
12631263
psd=psd,
@@ -1271,7 +1271,6 @@ def add_epochs(
12711271
replace=replace,
12721272
)
12731273

1274-
12751274
@fill_doc
12761275
def add_evokeds(
12771276
self,
@@ -1313,7 +1312,6 @@ def add_evokeds(
13131312
%(n_jobs)s
13141313
13151314
Notes
1316-
13171315
-----
13181316
.. versionadded:: 0.24.0
13191317
"""

mne/report/tests/test_report.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -748,10 +748,10 @@
748748
section = "<div whatever 😀 etc."
749749
sec_san = "_div_whatever___etc_"
750750
r.add_figure(
751-
fig=fig2,
752-
title="duplicate",
753-
section=section,
754-
replace=True, # should have no effect
751+
fig=fig2,
752+
title="duplicate",
753+
section=section,
754+
replace=True, # should have no effect
755755
)
756756
html = r.html
757757
assert len(html) == 6

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ addopts = """--durations=20 --doctest-modules -rfEXs --tb=short \
270270
--ignore=mne/report/js_and_css \
271271
--color=yes --capture=sys"""
272272

273-
274273
[tool.rstcheck]
275274
ignore_directives = [
276275
"autoclass",

0 commit comments

Comments
 (0)