Skip to content

Commit 320d949

Browse files
committed
Addressing-comments
1 parent e48aee8 commit 320d949

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

mne/report/report.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -843,8 +843,7 @@ def __init__(
843843
self.subject = subject
844844
self.title = title
845845
self.image_format = _check_image_format(None, image_format)
846-
self.projs = projs # Initialize self.projs
847-
846+
self.projs = projs
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
@@ -2220,6 +2219,9 @@ def remove(self, *, title=None, tags=None, remove_all=False):
22202219
]
22212220

22222221
return remove_idx
2222+
@fill_doc
2223+
def _add_or_replace(self, *, title, section, tags, html_partial, replace=False):
2224+
"""Append HTML content report, or replace it if it already exists.
22232225
22242226
@fill_doc
22252227
def add_code(

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,15 +262,13 @@ module = ['mne.annotations', 'mne.epochs', 'mne.evoked', 'mne.io']
262262
# -r f (failed), E (error), s (skipped), x (xfail), X (xpassed), w (warnings)
263263
# don't put in xfail for pytest 8.0+ because then it prints the tracebacks,
264264
# which look like real errors
265-
addopts = """--durations=20 --doctest-modules -rfEXs --tb=short \
266-
--cov=mne --cov-report=term --cov-branch \
267-
--doctest-ignore-import-errors --junit-xml=junit-results.xml \
265+
addopts = """--durations=20 --doctest-modules -rfEXs --cov-report= --tb=short \
266+
--cov-branch --doctest-ignore-import-errors --junit-xml=junit-results.xml \
268267
--ignore=doc --ignore=logo --ignore=examples --ignore=tutorials \
269268
--ignore=mne/gui/_*.py --ignore=mne/icons --ignore=tools \
270269
--ignore=mne/report/js_and_css \
271270
--color=yes --capture=sys"""
272271

273-
274272
[tool.rstcheck]
275273
ignore_directives = [
276274
"autoclass",

0 commit comments

Comments
 (0)