Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove EEG channels from emptyroom when preparing it for maxwell filter #1040

Merged
merged 2 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/source/dev.md.inc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
2. cHPI filtering is now performed before movement compensation.

- Fix bug where the ``config.proc`` parameter was not used properly during forward model creation (#1014 by @larsoner)
- Fix bug where emptyroom recordings containing EEG channels would crash the pipeline during maxwell filtering (#1040 by @drammock)

### :books: Documentation

Expand Down
1 change: 1 addition & 0 deletions mne_bids_pipeline/_import_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ def import_er_data(
raw_ref.info["bads"] = bads
raw_ref.info._check_consistency()
raw_ref.pick_types(meg=True, exclude=[])
raw_er.pick_types(meg=True, exclude=[])

if prepare_maxwell_filter:
# We need to include any automatically found bad channels, if relevant.
Expand Down
Loading