Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation warnings with newer versions of dependencies. #13049

Merged
merged 17 commits into from
Jan 8, 2025

Conversation

wmvanvliet
Copy link
Contributor

@wmvanvliet wmvanvliet commented Jan 7, 2025

SciPy 1.15.0 uses scipy.special.sph_harm_y over scipy.special.sph_harm and throws deprecation warnings, causing our unit tests to fail. Since we want to keep supporting lower versions of SciPy, I've added a wrapper in mne/fixes.py to smooth things over. The wrapper can be removed once we no longer support SciPy < 1.15.0

Note that the order of the parameters has changed for sph_harm_y, something which is not obvious if you just look at the names of the parameters in their docs.

  • Fix macOS segfault (openmeeg?)
  • Ensure no other uncaught warnings
  • Remove warning ignore line

@larsoner
Copy link
Member

larsoner commented Jan 7, 2025

Opened matplotlib/matplotlib#29427 to fix the matplotlib bug. Will push a fix for sklearn next, along with a temporary don't-use-matplotlib-dev that we'll want for a day or two.

@larsoner larsoner enabled auto-merge (squash) January 7, 2025 15:44
@larsoner larsoner disabled auto-merge January 7, 2025 17:40
@larsoner larsoner marked this pull request as draft January 7, 2025 19:32
@larsoner larsoner marked this pull request as ready for review January 7, 2025 21:09
@larsoner larsoner enabled auto-merge (squash) January 7, 2025 21:13
@wmvanvliet wmvanvliet changed the title Fix deprecation warning with new scipy Fix deprecation warnings with newer versions of dependencies. Jan 8, 2025
@larsoner larsoner merged commit df35021 into mne-tools:main Jan 8, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants