Skip to content

Commit

Permalink
remove EEG channels from emptyroom when preparing it for maxwell filt…
Browse files Browse the repository at this point in the history
…er (#1040)
  • Loading branch information
drammock authored Jan 17, 2025
1 parent 8408697 commit 1427c5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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

0 comments on commit 1427c5f

Please sign in to comment.