{{ message }}
ENH: add Epochs support and add_rate parameter to Report.add_projs - #13947
Open
Master-Zero1 wants to merge 11 commits into
Open
Master-Zero1 wants to merge 11 commits into
Master-Zero1 wants to merge 11 commits into
Conversation
larsoner
reviewed
Jun 6, 2026
larsoner
left a comment
Member
There was a problem hiding this comment.
Can you modify the report tutorial in some trivial way (can just be a whitespace/word wrap change)? CircleCI only builds modified examples and it would be nice to see what it produces. If that tutorial doesn't have anything that would trigger the "auto" path, feel free to modify it to do so
Also needs some test that would fail on main but pass on this PR. Hopefully there is some test in mine/report/tests/test_report.py that would already trigger that path, but if not, feel free to modify an existing test to do it. (We want tests to run as fast as possible so best to modify an existing test minimally if possible)
Author
larsoner
reviewed
Jun 8, 2026
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
larsoner
reviewed
Jun 8, 2026
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
larsoner
marked this pull request as ready for review
June 8, 2026 17:42
larsoner
reviewed
Jun 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Reference issue (if any)
Closes #13161
What does this implement/fix?
Report.add_projs()now acceptsmne.Epochsasinfoin addition toInfo,Evoked, and path-likeadd_rate="auto" | True | Falseparameter to show estimated event rates in the report caption"auto", rate is shown only if projector descriptions contain"ecg","eog", or"blink"len(epochs.drop_log)for event count and the first/last event times for durationAdditional information
I used Claude Sonnet 4.6 as an AI assistant to help navigate the codebase and understand the code structure and in writing the docstring. I have written and reviewed all the code myself, tested it locally using the MNE sample dataset, and personally understood each change before committing.