Skip to content

MRG: Better split file handling in Report.parse_folder() - #8486

Merged
agramfort merged 7 commits into
mne-tools:masterfrom
hoechenberger:report-split
Nov 5, 2020
Merged

agramfort merged 7 commits into
mne-tools:masterfrom
hoechenberger:report-split

Conversation

@hoechenberger

@hoechenberger hoechenberger commented Nov 5, 2020 •

Copy link
Copy Markdown
Member

Better split file handling in Reports: don't "report" on any splits but the first.

cc @agramfort, wdyt?

@hoechenberger hoechenberger changed the title WIP: Split file handling in Report WIP: Split file handling in Report.parse_folder() Nov 5, 2020
Comment thread mne/report.py Outdated
elif _endswith(fname, ('epo',)):
data = read_epochs(fname, preload=False)
elif _endswith(fname, ('ave',)):
data = read_evokeds(fname, condition=0, allow_maxshield=True)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we call data inst ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@hoechenberger

Copy link
Copy Markdown
Member Author

@agramfort can you check if this fixes your issue?

@hoechenberger hoechenberger changed the title WIP: Split file handling in Report.parse_folder() MRG: Better split file handling in Report.parse_folder() Nov 5, 2020

@agramfort agramfort left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mne-tools mne-tools deleted a comment from drammock Nov 5, 2020
@agramfort
agramfort merged commit 7cc7766 into mne-tools:master Nov 5, 2020
@agramfort

Copy link
Copy Markdown
Member

thx @hoechenberger

@hoechenberger
hoechenberger deleted the report-split branch November 5, 2020 21:21
@larsoner

larsoner commented Nov 6, 2020

Copy link
Copy Markdown
Member

hoechenberger added a commit to hoechenberger/mne-python that referenced this pull request Nov 6, 2020
larsoner pushed a commit that referenced this pull request Nov 6, 2020
* FIX #8486, Evoked and Epochs don't get split

* Update changelog

* Add @testing.requires_testing_data decorator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants