Skip to content

BUG: Fix picks_artifact passed as exclude in regress_artifact - #14457

Merged
wmvanvliet merged 1 commit into
mne-tools:mainfrom
DerAndereJohannes:regression_fix
Oct 25, 2026
Merged

wmvanvliet merged 1 commit into
mne-tools:mainfrom
DerAndereJohannes:regression_fix

Conversation

@DerAndereJohannes

Copy link
Copy Markdown
Contributor

What does this implement/fix?

There seems to have been a slipup in the regression code when you passed in already computed betas. The issue was that picks_artifact was passed positionally and actually ended up in the exclude variable. To fix, I changed the buggy version for the same call as in the non-beta version.

Additional information

I fixed the code myself and used qwen3.8-flash-next-IQ3_S to create the pytest. The test was manually reviewed and the before and after results were compared.

@CarinaFo CarinaFo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good catch.

@wmvanvliet

Copy link
Copy Markdown
Contributor

Thanks @DerAndereJohannes!

@wmvanvliet
wmvanvliet merged commit 1816be0 into mne-tools:main Oct 25, 2026
25 checks passed
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