Skip to content

Fix find_bad_channels_maxwell cHPI correction - #14142

Draft
christianbrodbeck wants to merge 6 commits into
mne-tools:mainfrom
christianbrodbeck:fix/maxwell-head_pos
Draft

Fix find_bad_channels_maxwell cHPI correction#14142
christianbrodbeck wants to merge 6 commits into
mne-tools:mainfrom
christianbrodbeck:fix/maxwell-head_pos

Conversation

@christianbrodbeck

Copy link
Copy Markdown
Member

What does this implement/fix?

In find_bad_channels_maxwell, _run_maxwell_filter is called for successive data chunks, but always with the same _MoveComp instance (mc). Inside _run_maxwell_filter , mc.initialize(...) sets up movement compensation starting at the beginning of the whole recording, rather than starting at the beginning of the relevant data chunk. This PR adds an argument to _run_maxwell_filter to use the appropriate data chunk index in the head movement recording.

Additional information

Claude Opus 5 identified the issue and assisted in implementing a fix and test.

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.

1 participant