diff --git a/docs/source/dev.md.inc b/docs/source/dev.md.inc index 37df0318e..6649cc374 100644 --- a/docs/source/dev.md.inc +++ b/docs/source/dev.md.inc @@ -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 diff --git a/mne_bids_pipeline/_import_data.py b/mne_bids_pipeline/_import_data.py index 4c61baf71..98bc43b96 100644 --- a/mne_bids_pipeline/_import_data.py +++ b/mne_bids_pipeline/_import_data.py @@ -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.