Skip to content

Raise warning and errors when np.nan provided to mne.stats.permutation_t_test().#13813

Open
1himan wants to merge 4 commits intomne-tools:mainfrom
1himan:issue-13767
Open

Raise warning and errors when np.nan provided to mne.stats.permutation_t_test().#13813
1himan wants to merge 4 commits intomne-tools:mainfrom
1himan:issue-13767

Conversation

@1himan
Copy link
Copy Markdown
Contributor

@1himan 1himan commented Apr 5, 2026

Reference issue (if any)

What does this implement/fix?

Fixes #13767.

Additional information

Not sure if msg should always be equal to "to be plotted". In this case we might wanna tell the user that there's something wrong with the data - f"Some of the values in {data} are NaN."? In that case we want to improve the msg param as well.

Also - not adding doc/changes/dev/.... since its just a small fix. I can do it if maintainers insist?

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.

np.nan in mne.stats.permutation_t_test fails silently

1 participant